From a1a900616397551bcd0d74c729eae8272a40390e Mon Sep 17 00:00:00 2001 From: Mark Michelson <mmichelson@digium.com> Date: Thu, 12 Mar 2009 21:43:51 +0000 Subject: [PATCH] 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 --- apps/app_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index f9cc878668..5f99de4c2c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -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 { -- GitLab