[asterisk-commits] twilson: branch 1.6.0 r167971 - in /branches/1.6.0: ./ apps/app_dial.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 8 18:37:01 CST 2009
Author: twilson
Date: Thu Jan 8 18:37:01 2009
New Revision: 167971
URL: http://svn.digium.com/view/asterisk?view=rev&rev=167971
Log:
Merged revisions 167935 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r167935 | twilson | 2009-01-08 18:13:12 -0600 (Thu, 08 Jan 2009) | 2 lines
Set peer context and exten values so MACRO_EXTEN and MACRO_CONTEXT will be set
........
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/apps/app_dial.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/apps/app_dial.c?view=diff&rev=167971&r1=167970&r2=167971
==============================================================================
--- branches/1.6.0/apps/app_dial.c (original)
+++ branches/1.6.0/apps/app_dial.c Thu Jan 8 18:37:01 2009
@@ -1747,6 +1747,10 @@
theapp = pbx_findapp("Macro");
if (theapp && !res) { /* XXX why check res here ? */
+ /* Set peer->exten and peer->context so that MACRO_EXTEN and MACRO_CONTEXT get set */
+ ast_copy_string(peer->context, chan->context, sizeof(peer->context));
+ ast_copy_string(peer->exten, chan->exten, sizeof(peer->exten));
+
replace_macro_delimiter(opt_args[OPT_ARG_CALLEE_MACRO]);
res = pbx_exec(peer, theapp, opt_args[OPT_ARG_CALLEE_MACRO]);
ast_debug(1, "Macro exited with status %d\n", res);
More information about the asterisk-commits
mailing list