From 9de1bc72042ff96a38606773bed6d2f6e4a0af3f Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Sat, 13 Apr 2024 13:30:22 -0400 Subject: [PATCH] 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 --- apps/app_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index 06efc4ccc2..75101ec4df 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -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; -- 2.47.2