diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-22 15:01:54 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-22 15:01:54 +0000 |
commit | 6ac6975d74c6b8d4ba6d67070243db7d43b275fd (patch) | |
tree | daf8fa76df5f908698d4c941c92a0f835258f0d4 /apps/app_parkandannounce.c | |
parent | 6321ba99d9ec7e95cdac5690bf871789b3df68dd (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@170047 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_parkandannounce.c')
-rw-r--r-- | apps/app_parkandannounce.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_parkandannounce.c b/apps/app_parkandannounce.c index 435fc6048..42a7c2849 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)) { |