mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 12:25:35 +00:00
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 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@167971 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1747,6 +1747,10 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user