]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: set QUEUESTATUS to LEAVEEMPTY instead of CONTINUE
authorIvan Poddubny <ivan.poddubny@gmail.com>
Sun, 12 Aug 2018 16:04:42 +0000 (18:04 +0200)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 13 Aug 2018 17:44:42 +0000 (12:44 -0500)
commitf48761907a3c3ac18f987f2fdf5e7f79347624b7
tree553e41d70a8ebf36ffd3827aa88340795b72dfa8
parentdc786aa576cb8919f72dac67d788caa6a28a6ddf
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
apps/app_queue.c