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=1a594fcb219b77b7cd4683502262ec8b6e1ffca5;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 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; + } } }