diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-12 21:43:51 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-12 21:43:51 +0000 |
commit | c190e50074facf12c7ce957f147253dbf73a7149 (patch) | |
tree | 00623933458e5737a5b2361a6f3f164a3a7f4094 /apps/app_queue.c | |
parent | 287090e090ac5c220e244c57f6583f292d7a9dc5 (diff) |
Run the macro on the queue member's channel when he answers, not the caller's channel.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@181846 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index f9cc87866..5f99de4c2 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 { |