From a21860310e9d59b024eaa4cd22e6d85dd8845941 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 7 Sep 2005 19:13:00 +0000 Subject: convert a bunch of apps to use ast_goto_if_exists() (issue #5138) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6533 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_chanisavail.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps/app_chanisavail.c') diff --git a/apps/app_chanisavail.c b/apps/app_chanisavail.c index 3039f1275..34b313764 100755 --- a/apps/app_chanisavail.c +++ b/apps/app_chanisavail.c @@ -125,9 +125,7 @@ static int chanavail_exec(struct ast_channel *chan, void *data) if (res < 1) { pbx_builtin_setvar_helper(chan, "AVAILCHAN", ""); pbx_builtin_setvar_helper(chan, "AVAILORIGCHAN", ""); - if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num)) - chan->priority+=100; - else + if (!ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) return -1; } -- cgit v1.2.3