diff --git a/apps/app_queue.c b/apps/app_queue.c
index f9cc87866826a137454ccc53a76f7452db6b9336..5f99de4c2c5c0251910796cccbcd623ebf905596 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 {