[asterisk-commits] twilson: branch 1.6.1 r167972 - in /branches/1.6.1: ./ apps/app_dial.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 8 18:45:37 CST 2009


Author: twilson
Date: Thu Jan  8 18:45:37 2009
New Revision: 167972

URL: http://svn.digium.com/view/asterisk?view=rev&rev=167972
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.1/   (props changed)
    branches/1.6.1/apps/app_dial.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/apps/app_dial.c?view=diff&rev=167972&r1=167971&r2=167972
==============================================================================
--- branches/1.6.1/apps/app_dial.c (original)
+++ branches/1.6.1/apps/app_dial.c Thu Jan  8 18:45:37 2009
@@ -1783,6 +1783,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