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_authenticate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/app_authenticate.c') diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c index c9bbdf2ef..81110e90b 100755 --- a/apps/app_authenticate.c +++ b/apps/app_authenticate.c @@ -174,8 +174,7 @@ static int auth_exec(struct ast_channel *chan, void *data) if (!res) res = ast_waitstream(chan, ""); } else { - if (jump && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num)) { - chan->priority+=100; + if (jump && ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) { res = 0; } else { if (!ast_streamfile(chan, "vm-goodbye", chan->language)) -- cgit v1.2.3