]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 181846 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 12 Mar 2009 21:45:48 +0000 (21:45 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 12 Mar 2009 21:45:48 +0000 (21:45 +0000)
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.1@181849 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 2b014c769c00e0d2dc406717df03be7207ad412e..2bb8be3e2a3f16a490d136aae4ff49b70708e45a 100644 (file)
@@ -3851,7 +3851,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 {