mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-21 04:46:29 +00:00
Opaquify ast_channel structs and lists
Review: https://reviewboard.asterisk.org/r/1773/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@357542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -97,20 +97,20 @@ static int isexten_function_read(struct ast_channel *chan, const char *cmd, char
|
||||
if (sscanf(args.priority, "%30d", &priority_num) == 1 && priority_num > 0) {
|
||||
int res;
|
||||
res = ast_exists_extension(chan, args.context, args.exten, priority_num,
|
||||
S_COR(chan->caller.id.number.valid, chan->caller.id.number.str, NULL));
|
||||
S_COR(ast_channel_caller(chan)->id.number.valid, ast_channel_caller(chan)->id.number.str, NULL));
|
||||
if (res)
|
||||
strcpy(buf, "1");
|
||||
} else {
|
||||
int res;
|
||||
res = ast_findlabel_extension(chan, args.context, args.exten, args.priority,
|
||||
S_COR(chan->caller.id.number.valid, chan->caller.id.number.str, NULL));
|
||||
S_COR(ast_channel_caller(chan)->id.number.valid, ast_channel_caller(chan)->id.number.str, NULL));
|
||||
if (res > 0)
|
||||
strcpy(buf, "1");
|
||||
}
|
||||
} else if (!ast_strlen_zero(args.exten)) {
|
||||
int res;
|
||||
res = ast_exists_extension(chan, args.context, args.exten, 1,
|
||||
S_COR(chan->caller.id.number.valid, chan->caller.id.number.str, NULL));
|
||||
S_COR(ast_channel_caller(chan)->id.number.valid, ast_channel_caller(chan)->id.number.str, NULL));
|
||||
if (res)
|
||||
strcpy(buf, "1");
|
||||
} else if (!ast_strlen_zero(args.context)) {
|
||||
@@ -151,7 +151,7 @@ static int acf_isexten_exec(struct ast_channel *chan, const char *cmd, char *par
|
||||
}
|
||||
|
||||
if (ast_exists_extension(chan, args.context, args.extension, priority_int,
|
||||
S_COR(chan->caller.id.number.valid, chan->caller.id.number.str, NULL))) {
|
||||
S_COR(ast_channel_caller(chan)->id.number.valid, ast_channel_caller(chan)->id.number.str, NULL))) {
|
||||
ast_copy_string(buffer, "1", buflen);
|
||||
} else {
|
||||
ast_copy_string(buffer, "0", buflen);
|
||||
|
Reference in New Issue
Block a user