From 82d3dc386d26c7dc99cff5455564d81009a460c9 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Thu, 12 Mar 2009 21:44:57 +0000 Subject: [PATCH] Merged revisions 181846 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r181846 | mmichelson | 2009-03-12 16:43:51 -0500 (Thu, 12 Mar 2009) | 3 lines 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/branches/1.6.0@181848 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 89221459f0..cb5b12644c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3790,7 +3790,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce app = pbx_findapp("Macro"); if (app) { - res = pbx_exec(qe->chan, app, macroexec); + res = pbx_exec(peer, app, macroexec); ast_debug(1, "Macro exited with status %d\n", res); res = 0; } else {