aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_enumlookup.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-07 22:32:30 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-07 22:32:30 +0000
commit0b6d4b88ef378c2bd0051b838f53fea9920850c3 (patch)
treea901d6bedea4f1a417c2556de785365e13c09fc9 /apps/app_enumlookup.c
parenta87fbd027ab6491dca7f8f277672aae63b559607 (diff)
Fix lookup to use proper API call...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6302 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_enumlookup.c')
-rwxr-xr-xapps/app_enumlookup.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/app_enumlookup.c b/apps/app_enumlookup.c
index 22410334f..aea6b9c03 100755
--- a/apps/app_enumlookup.c
+++ b/apps/app_enumlookup.c
@@ -85,8 +85,7 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
LOCAL_USER_REMOVE(u);
if (!res) { /* Failed to do a lookup */
/* Look for a "busy" place */
- if (option_priority_jumping && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
- chan->priority += 100;
+ ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
pbx_builtin_setvar_helper(chan, "ENUMSTATUS", "ERROR");
return 0;
}
@@ -140,9 +139,7 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
*t = 0;
pbx_builtin_setvar_helper(chan, "ENUM", 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))
- chan->priority += 50;
- else
+ if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 51))
res = 0;
}
} else if (!ast_strlen_zero(tech)) {