mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Run the macro on the queue member's channel when he answers, not the caller's channel.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@181846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4037,7 +4037,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
|
||||
application = pbx_findapp("Macro");
|
||||
|
||||
if (application) {
|
||||
res = pbx_exec(qe->chan, application, macroexec);
|
||||
res = pbx_exec(peer, application, macroexec);
|
||||
ast_debug(1, "Macro exited with status %d\n", res);
|
||||
res = 0;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user