[asterisk-commits] mjordan: branch 11 r407074 - in /branches/11: ./ apps/app_dial.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 31 17:28:33 CST 2014
Author: mjordan
Date: Fri Jan 31 17:28:30 2014
New Revision: 407074
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=407074
Log:
app_dial: Allow macro/gosub pre-bridge execution to occur on priorities
The parsing for the destination of the macro/gosub uses the '^' character to
separate out context, extension, and priority. However, the logic for the
macro/gosub execution was written such that it would only do the actual
macro/gosub jump if a '^' character existed. This doesn't apply when the
macro/gosub jump occurs in a priority/priority label. This patch changes
the logic so that the parsing still occurs, but the jump will occur even
for priorities/priority labels.
(issue ASTERISK-23164)
Review: https://reviewboard.asterisk.org/r/3154
........
Merged revisions 407041 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/apps/app_dial.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/apps/app_dial.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/app_dial.c?view=diff&rev=407074&r1=407073&r2=407074
==============================================================================
--- branches/11/apps/app_dial.c (original)
+++ branches/11/apps/app_dial.c Fri Jan 31 17:28:30 2014
@@ -2880,8 +2880,9 @@
/* perform a transfer to a new extension */
if (strchr(macro_transfer_dest, '^')) { /* context^exten^priority*/
ast_replace_subargument_delimiter(macro_transfer_dest);
- if (!ast_parseable_goto(chan, macro_transfer_dest))
- ast_set_flag64(peerflags, OPT_GO_ON);
+ }
+ if (!ast_parseable_goto(chan, macro_transfer_dest)) {
+ ast_set_flag64(peerflags, OPT_GO_ON);
}
}
} else {
@@ -2961,8 +2962,9 @@
/* perform a transfer to a new extension */
if (strchr(gosub_transfer_dest, '^')) { /* context^exten^priority*/
ast_replace_subargument_delimiter(gosub_transfer_dest);
- if (!ast_parseable_goto(chan, gosub_transfer_dest))
- ast_set_flag64(peerflags, OPT_GO_ON);
+ }
+ if (!ast_parseable_goto(chan, gosub_transfer_dest)) {
+ ast_set_flag64(peerflags, OPT_GO_ON);
}
}
} else {
More information about the asterisk-commits
mailing list