|
|
|
@ -2954,8 +2954,8 @@ check_turns:
|
|
|
|
|
ast_queue_log(queuename, chan->uniqueid, "NONE", "ABANDON", "%d|%d|%ld", qe.pos, qe.opos, (long)time(NULL) - qe.start);
|
|
|
|
|
if (option_verbose > 2) {
|
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "User disconnected from queue %s while waiting their turn\n", queuename);
|
|
|
|
|
res = -1;
|
|
|
|
|
}
|
|
|
|
|
res = -1;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (!res)
|
|
|
|
@ -3052,8 +3052,8 @@ check_turns:
|
|
|
|
|
ast_queue_log(queuename, chan->uniqueid, "NONE", "ABANDON", "%d|%d|%ld", qe.pos, qe.opos, (long)time(NULL) - qe.start);
|
|
|
|
|
if (option_verbose > 2) {
|
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "User disconnected from queue %s when they almost made it\n", queuename);
|
|
|
|
|
res = -1;
|
|
|
|
|
}
|
|
|
|
|
res = -1;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (res && valid_exit(&qe, res)) {
|
|
|
|
@ -3062,10 +3062,8 @@ check_turns:
|
|
|
|
|
}
|
|
|
|
|
/* exit after 'timeout' cycle if 'n' option enabled */
|
|
|
|
|
if (go_on) {
|
|
|
|
|
if (option_verbose > 2) {
|
|
|
|
|
if (option_verbose > 2)
|
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "Exiting on time-out cycle\n");
|
|
|
|
|
res = -1;
|
|
|
|
|
}
|
|
|
|
|
ast_queue_log(queuename, chan->uniqueid, "NONE", "EXITWITHTIMEOUT", "%d", qe.pos);
|
|
|
|
|
record_abandoned(&qe);
|
|
|
|
|
reason = QUEUE_TIMEOUT;
|
|
|
|
|