[asterisk-commits] rmudgett: branch 10 r369263 - in /branches/10: ./ apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jun 22 17:09:33 CDT 2012
Author: rmudgett
Date: Fri Jun 22 17:09:29 2012
New Revision: 369263
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369263
Log:
Explicitly check caller hangup in app Queue rather than a polluted res2 value.
........
Merged revisions 369262 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/apps/app_queue.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/apps/app_queue.c?view=diff&rev=369263&r1=369262&r2=369263
==============================================================================
--- branches/10/apps/app_queue.c (original)
+++ branches/10/apps/app_queue.c Fri Jun 22 17:09:29 2012
@@ -4784,7 +4784,7 @@
if (!res2) {
if (qe->parent->memberdelay) {
ast_log(LOG_NOTICE, "Delaying member connect for %d seconds\n", qe->parent->memberdelay);
- res2 |= ast_safe_sleep(peer, qe->parent->memberdelay * 1000);
+ res2 = ast_safe_sleep(peer, qe->parent->memberdelay * 1000);
}
if (!res2 && announce) {
if (play_file(peer, announce) < 0) {
@@ -4812,8 +4812,8 @@
}
}
}
- }
- res2 |= ast_autoservice_stop(qe->chan);
+ ast_autoservice_stop(qe->chan);
+ }
if (ast_check_hangup(peer)) {
/* Agent must have hung up */
ast_log(LOG_WARNING, "Agent on %s hungup on the customer.\n", peer->name);
@@ -4831,8 +4831,8 @@
ast_hangup(peer);
ao2_ref(member, -1);
goto out;
- } else if (res2) {
- /* Caller must have hung up just before being connected*/
+ } else if (ast_check_hangup(qe->chan)) {
+ /* Caller must have hung up just before being connected */
ast_log(LOG_NOTICE, "Caller was about to talk to agent on %s but the caller hungup.\n", peer->name);
ast_queue_log(queuename, qe->chan->uniqueid, member->membername, "ABANDON", "%d|%d|%ld", qe->pos, qe->opos, (long) time(NULL) - qe->start);
record_abandoned(qe);
More information about the asterisk-commits
mailing list