mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
Fix lookup to use proper API call...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -85,8 +85,7 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
|
|||||||
LOCAL_USER_REMOVE(u);
|
LOCAL_USER_REMOVE(u);
|
||||||
if (!res) { /* Failed to do a lookup */
|
if (!res) { /* Failed to do a lookup */
|
||||||
/* Look for a "busy" place */
|
/* Look for a "busy" place */
|
||||||
if (option_priority_jumping && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
|
ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
|
||||||
chan->priority += 100;
|
|
||||||
pbx_builtin_setvar_helper(chan, "ENUMSTATUS", "ERROR");
|
pbx_builtin_setvar_helper(chan, "ENUMSTATUS", "ERROR");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -140,9 +139,7 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
|
|||||||
*t = 0;
|
*t = 0;
|
||||||
pbx_builtin_setvar_helper(chan, "ENUM", tmp);
|
pbx_builtin_setvar_helper(chan, "ENUM", tmp);
|
||||||
ast_log(LOG_NOTICE, "tel: ENUM set to \"%s\"\n", tmp);
|
ast_log(LOG_NOTICE, "tel: ENUM set to \"%s\"\n", tmp);
|
||||||
if (option_priority_jumping && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 51, chan->cid.cid_num))
|
if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 51))
|
||||||
chan->priority += 50;
|
|
||||||
else
|
|
||||||
res = 0;
|
res = 0;
|
||||||
}
|
}
|
||||||
} else if (!ast_strlen_zero(tech)) {
|
} else if (!ast_strlen_zero(tech)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user