From 9a2dca7c8c264ba4bcb616aec2361ff36eb29423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20F=2E=20H=C3=B8gh?= Date: Thu, 30 Oct 2025 14:43:37 +0100 Subject: [PATCH] app_queue.c: Only announce to head caller if announce_to_first_user Only make announcements to head caller if announce_to_first_user is true Fixes: #1568 UserNote: When announce_to_first_user is false, no announcements are played to the head caller --- apps/app_queue.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index 954fe64bf0..e6d4067ea8 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -8972,13 +8972,12 @@ check_turns: goto stop; } } - } - makeannouncement = 1; - /* Make a periodic announcement, if enabled */ - if (qe.parent->periodicannouncefrequency) { - if ((res = say_periodic_announcement(&qe, ringing))) { - goto stop; + /* Make a periodic announcement, if enabled */ + if (qe.parent->periodicannouncefrequency) { + if ((res = say_periodic_announcement(&qe, ringing))) { + goto stop; + } } }