mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 21:09:47 +00:00
Merge "app_queue.c: Fix announcements when announce-to-first-user not enabled." into 13
This commit is contained in:
@@ -8042,7 +8042,7 @@ check_turns:
|
|||||||
goto stop;
|
goto stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
makeannouncement = 0;
|
makeannouncement = qe.parent->announce_to_first_user;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
/* This is the wait loop for the head caller*/
|
/* This is the wait loop for the head caller*/
|
||||||
@@ -8062,15 +8062,17 @@ check_turns:
|
|||||||
|
|
||||||
if (makeannouncement) {
|
if (makeannouncement) {
|
||||||
/* Make a position announcement, if enabled */
|
/* Make a position announcement, if enabled */
|
||||||
if (qe.parent->announcefrequency && qe.parent->announce_to_first_user)
|
if (qe.parent->announcefrequency) {
|
||||||
if ((res = say_position(&qe,ringing)))
|
if ((res = say_position(&qe, ringing))) {
|
||||||
goto stop;
|
goto stop;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
makeannouncement = 1;
|
makeannouncement = 1;
|
||||||
|
|
||||||
/* Make a periodic announcement, if enabled */
|
/* Make a periodic announcement, if enabled */
|
||||||
if (qe.parent->periodicannouncefrequency && qe.parent->announce_to_first_user) {
|
if (qe.parent->periodicannouncefrequency) {
|
||||||
if ((res = say_periodic_announcement(&qe,ringing))) {
|
if ((res = say_periodic_announcement(&qe, ringing))) {
|
||||||
goto stop;
|
goto stop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user