[asterisk-commits] mmichelson: trunk r181846 - /trunk/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 12 16:43:54 CDT 2009


Author: mmichelson
Date: Thu Mar 12 16:43:51 2009
New Revision: 181846

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=181846
Log:
Run the macro on the queue member's channel when he answers, not the caller's channel.


Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_queue.c?view=diff&rev=181846&r1=181845&r2=181846
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Thu Mar 12 16:43:51 2009
@@ -4037,7 +4037,7 @@
 			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 {




More information about the asterisk-commits mailing list