[Asterisk-code-review] app queue: set QUEUESTATUS to LEAVEEMPTY instead of CONTINUE (asterisk[13])
Ivan Poddubny
asteriskteam at digium.com
Sun Aug 12 11:40:41 CDT 2018
Ivan Poddubny has uploaded this change for review. ( https://gerrit.asterisk.org/9854
Change subject: app_queue: set QUEUESTATUS to LEAVEEMPTY instead of CONTINUE
......................................................................
app_queue: set QUEUESTATUS to LEAVEEMPTY instead of CONTINUE
When a call leaves a queue on leaveempty condition, QUEUESTATUS
must be set to LEAVEEMPTY, no matter whether Queue was executed with or
without the "c" (continue) option.
The regression was introduced in the fix for ASTERISK-25665.
The following fix (ASTERISK-27065) was incomplete, as QUEUESTATUS was
overwritten in case when "c" is set, regardless of what was the cause
for leaving the queue.
ASTERISK-27973 #close
Reported-by: Valentin Safonov
Change-Id: Iec013fe6a26a4e825ca572a1dda4f3cee5f6f80c
---
M apps/app_queue.c
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/54/9854/1
diff --git a/apps/app_queue.c b/apps/app_queue.c
index f783ac9..31580b4 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -8172,12 +8172,12 @@
"%d|%d|%ld", qe.pos, qe.opos,
(long) (time(NULL) - qe.start));
res = -1;
- } 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 (qcontinue) {
+ reason = QUEUE_CONTINUE;
+ res = 0;
}
} else if (qe.valid_digits) {
ast_queue_log(args.queuename, ast_channel_uniqueid(chan), "NONE", "EXITWITHKEY",
--
To view, visit https://gerrit.asterisk.org/9854
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iec013fe6a26a4e825ca572a1dda4f3cee5f6f80c
Gerrit-Change-Number: 9854
Gerrit-PatchSet: 1
Gerrit-Owner: Ivan Poddubny <ivan.poddubny at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180812/f10a58ae/attachment.html>
More information about the asterisk-code-review
mailing list