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
releases/23
Kristian F. Høgh 11 months ago committed by Asterisk Development Team
parent 7036ad595c
commit ba3507b167

@ -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;
}
}
}

Loading…
Cancel
Save