diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-23 22:36:49 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-23 22:36:49 +0000 |
commit | a5b7689efdffc721c22da89bf1cf89aea1f3be77 (patch) | |
tree | 8edac973fddb716718b472351628d555ca643e29 | |
parent | 7dd0b17a8cc16e27b737ccd6afb6d8b9c3499305 (diff) |
Merged revisions 272367 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
This version of the patch only adds AgentComplete for attended transfers. It was already present for blind transfers.
........
r272367 | mnicholson | 2010-06-23 17:33:51 -0500 (Wed, 23 Jun 2010) | 8 lines
Send AgentComplete manager events in the event of blind and attended transfers.
(closes issue #16819)
Reported by: elbriga
Patches:
app_queue.diff uploaded by elbriga (license 482)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@272368 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_queue.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 1fdd97c5a..a7f023bfa 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4816,7 +4816,8 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce bridge = ast_bridge_call(qe->chan,peer, &bridge_config); /* If the queue member did an attended transfer, then the TRANSFER already was logged in the queue_log - * when the masquerade occurred. These other "ending" queue_log messages are unnecessary + * when the masquerade occurred. These other "ending" queue_log messages are unnecessary, except for + * the AgentComplete manager event */ ast_channel_lock(qe->chan); if (!attended_transfer_occurred(qe->chan)) { @@ -4841,6 +4842,9 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce ast_channel_datastore_remove(qe->chan, tds); } update_queue(qe->parent, member, callcompletedinsl, (time(NULL) - callstart)); + } else { + /* We already logged the TRANSFER on the queue_log, but we still need to send the AgentComplete event */ + send_agent_complete(qe, queuename, peer, member, callstart, vars, sizeof(vars), TRANSFER); } if (transfer_ds) { |