aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 2b014c769..2bb8be3e2 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -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 {