mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
app_queue.c: Properly handle invalid strategies from realtime.
The existing code sets the queue strategy to `ringall` but it is then
immediately overwritten with an invalid one.
Fixes #707
(cherry picked from commit 9de1bc7204
)
This commit is contained in:
committed by
Asterisk Development Team
parent
e53bc85b1d
commit
c78d46fb56
@@ -3513,7 +3513,7 @@ static void queue_set_param(struct call_queue *q, const char *param, const char
|
||||
if (strategy < 0) {
|
||||
ast_log(LOG_WARNING, "'%s' isn't a valid strategy for queue '%s', using ringall instead\n",
|
||||
val, q->name);
|
||||
q->strategy = QUEUE_STRATEGY_RINGALL;
|
||||
strategy = QUEUE_STRATEGY_RINGALL;
|
||||
}
|
||||
if (strategy == q->strategy) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user