mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
app_queue: Fix returning to dialplan when a queue is empty
The fix for ASTERISK-25665 introduced a regression. The return value of queue_exec used to be 0 in case of leavewhenempty but it was changed to -1 (returned from wait_our_turn and passed transparently by queue_exec), thus leading to hangup instead of returning back to dialplan. This commit resets the value back to 0 in this case, restoring original behavior. ASTERISK-27065 #close Reported by: Marek Cervenka Change-Id: Id9c83b75aeda463250155e88c5004be52bbca5ac
This commit is contained in:
@@ -8301,6 +8301,9 @@ stop:
|
||||
} else if (qcontinue) {
|
||||
reason = QUEUE_CONTINUE;
|
||||
res = 0;
|
||||
} else if (reason == QUEUE_LEAVEEMPTY) {
|
||||
/* Return back to dialplan, don't hang up */
|
||||
res = 0;
|
||||
}
|
||||
} else if (qe.valid_digits) {
|
||||
ast_queue_log(args.queuename, ast_channel_uniqueid(chan), "NONE", "EXITWITHKEY",
|
||||
|
Reference in New Issue
Block a user