From 632da7c11a16eec8a5b0df8ef0d0034bcec2951a Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Tue, 31 Jan 2023 09:40:54 -0500 Subject: [PATCH] app_queue: Reset all queue defaults before reload. Several queue fields were not being set to their default value during a reload. Additionally added some sample configuration options that were missing from queues.conf.sample. Change-Id: I3a88c7877af91752b1b46a0c087384f7eb9c47e4 --- apps/app_queue.c | 7 +++++++ configs/samples/queues.conf.sample | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/apps/app_queue.c b/apps/app_queue.c index c5b7d10162..00dc84c895 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2938,7 +2938,10 @@ static void init_queue(struct call_queue *q) q->timeout = DEFAULT_TIMEOUT; q->maxlen = 0; + ast_string_field_set(q, announce, ""); ast_string_field_set(q, context, ""); + ast_string_field_set(q, membergosub, ""); + ast_string_field_set(q, defaultrule, ""); q->announcefrequency = 0; q->minannouncefrequency = DEFAULT_MIN_ANNOUNCE_FREQUENCY; @@ -2966,7 +2969,10 @@ static void init_queue(struct call_queue *q) q->periodicannouncefrequency = 0; q->randomperiodicannounce = 0; q->numperiodicannounce = 0; + q->relativeperiodicannounce = 0; q->autopause = QUEUE_AUTOPAUSE_OFF; + q->autopausebusy = 0; + q->autopauseunavail = 0; q->timeoutpriority = TIMEOUT_PRIORITY_APP; q->autopausedelay = 0; if (!q->members) { @@ -2991,6 +2997,7 @@ static void init_queue(struct call_queue *q) ast_string_field_set(q, sound_minute, "queue-minute"); ast_string_field_set(q, sound_seconds, "queue-seconds"); ast_string_field_set(q, sound_thanks, "queue-thankyou"); + ast_string_field_set(q, sound_callerannounce, ""); ast_string_field_set(q, sound_reporthold, "queue-reporthold"); if (!q->sound_periodicannounce[0]) { diff --git a/configs/samples/queues.conf.sample b/configs/samples/queues.conf.sample index 3b2c18b9d1..0987236cd6 100644 --- a/configs/samples/queues.conf.sample +++ b/configs/samples/queues.conf.sample @@ -71,6 +71,12 @@ monitor-type = MixMonitor ; ;announce = queue-markq ; +; An announcement may be specified which is played to the caller just +; before they are bridged with an agent. The default is to not play an +; announcement to the caller. +; +;queue-callerannounce = you-are-being-connected +; ; A strategy may be specified. Valid strategies include: ; ; ringall - ring all available channels until one answers (default) @@ -341,6 +347,10 @@ monitor-type = MixMonitor ;queue-thereare = queue-thereare ; ("calls waiting.") ;queue-callswaiting = queue-callswaiting + ; ("Currently there are more than") +;queue-quantity1 = queue-quantity1 + ; ("callers waiting to speak with a representative") +;queue-quantity2 = queue-quantity2 ; ("The current est. holdtime is") ;queue-holdtime = queue-holdtime ; ("minute.") -- 2.47.2