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
This commit is contained in:
Kristian F. Høgh
2025-10-30 14:43:37 +01:00
parent 7aa0b6434e
commit 092147cc8c

View File

@@ -9016,13 +9016,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;
}
}
}