[asterisk-commits] file: trunk r170047 - /trunk/apps/app_parkandannounce.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 22 09:01:54 CST 2009
Author: file
Date: Thu Jan 22 09:01:54 2009
New Revision: 170047
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=170047
Log:
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
Modified:
trunk/apps/app_parkandannounce.c
Modified: trunk/apps/app_parkandannounce.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_parkandannounce.c?view=diff&rev=170047&r1=170046&r2=170047
==============================================================================
--- trunk/apps/app_parkandannounce.c (original)
+++ trunk/apps/app_parkandannounce.c Thu Jan 22 09:01:54 2009
@@ -121,8 +121,10 @@
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)) {
More information about the asterisk-commits
mailing list