From: Kristian F. Høgh Date: Thu, 30 Oct 2025 13:43:37 +0000 (+0100) Subject: app_queue.c: Only announce to head caller if announce_to_first_user X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7bfb86e12d444780229724babac58de89c0627b;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 94c808d508..10ea569123 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -9103,13 +9103,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; + } } }