From: Joshua Colp Date: Thu, 22 Jan 2009 15:01:54 +0000 (+0000) Subject: Clear the autoloop flag when parsing and setting the context/extension/priority to... X-Git-Tag: 1.6.2.0-beta1~390 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ee6a741dc579590c8f623766052407187e8c89f;p=thirdparty%2Fasterisk.git Clear the autoloop flag when parsing and setting the context/extension/priority to go back to. When the channel executes a PBX again we want it to start out at the point we explicitly say and at that point it will not yet be doing autoloop. (closes issue #14304) Reported by: jcovert git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@170047 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_parkandannounce.c b/apps/app_parkandannounce.c index 435fc60483..42a7c28497 100644 --- a/apps/app_parkandannounce.c +++ b/apps/app_parkandannounce.c @@ -121,8 +121,10 @@ static int parkandannounce_exec(struct ast_channel *chan, void *data) dialtech = strsep(&args.dial, "/"); ast_verb(3, "Dial Tech,String: (%s,%s)\n", dialtech, args.dial); - if (!ast_strlen_zero(args.return_context)) + if (!ast_strlen_zero(args.return_context)) { + ast_clear_flag(chan, AST_FLAG_IN_AUTOLOOP); ast_parseable_goto(chan, args.return_context); + } ast_verb(3, "Return Context: (%s,%s,%d) ID: %s\n", chan->context, chan->exten, chan->priority, chan->cid.cid_num); if (!ast_exists_extension(chan, chan->context, chan->exten, chan->priority, chan->cid.cid_num)) {