|
|
|
@ -2958,8 +2958,8 @@ check_turns:
|
|
|
|
|
ast_queue_log(args.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", args.queuename);
|
|
|
|
|
res = -1;
|
|
|
|
|
}
|
|
|
|
|
res = -1;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (!res)
|
|
|
|
@ -3057,8 +3057,8 @@ check_turns:
|
|
|
|
|
ast_queue_log(args.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", args.queuename);
|
|
|
|
|
res = -1;
|
|
|
|
|
}
|
|
|
|
|
res = -1;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (res && valid_exit(&qe, res)) {
|
|
|
|
@ -3067,10 +3067,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(args.queuename, chan->uniqueid, "NONE", "EXITWITHTIMEOUT", "%d", qe.pos);
|
|
|
|
|
record_abandoned(&qe);
|
|
|
|
|
reason = QUEUE_TIMEOUT;
|
|
|
|
|