[asterisk-commits] app queue.c: Fix announcements when announce-to-first-user n... (asterisk[13])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 4 14:32:27 CDT 2017
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/6634 )
Change subject: app_queue.c: Fix announcements when announce-to-first-user not enabled.
......................................................................
app_queue.c: Fix announcements when announce-to-first-user not enabled.
The previous patch for ASTERISK-27216 made it so you wouldn't get any
position or periodic announcements unless you had announce-to-first-user
enabled. The announce-to-first-user feature was added by ASTERISK_21782
as a result of the patch which introduced the redundant announcements that
ASTERISK-27216 removes.
* By noting that the makeannouncement variable is used to suppresses the
first user announcement, we set its initial value to the
announce-to-first-user enable setting.
ASTERISK-27216
Change-Id: Ieaeb7dbea8ae7073086b775fbafe0625b000b10a
---
M apps/app_queue.c
1 file changed, 7 insertions(+), 5 deletions(-)
Approvals:
Stefan Engström: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, approved
Jenkins2: Approved for Submit
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 04a4a04..c4c3dbc 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -8042,7 +8042,7 @@
goto stop;
}
- makeannouncement = 0;
+ makeannouncement = qe.parent->announce_to_first_user;
for (;;) {
/* This is the wait loop for the head caller*/
@@ -8062,15 +8062,17 @@
if (makeannouncement) {
/* Make a position announcement, if enabled */
- if (qe.parent->announcefrequency && qe.parent->announce_to_first_user)
- if ((res = say_position(&qe,ringing)))
+ if (qe.parent->announcefrequency) {
+ if ((res = say_position(&qe, ringing))) {
goto stop;
+ }
+ }
}
makeannouncement = 1;
/* Make a periodic announcement, if enabled */
- if (qe.parent->periodicannouncefrequency && qe.parent->announce_to_first_user) {
- if ((res = say_periodic_announcement(&qe,ringing))) {
+ if (qe.parent->periodicannouncefrequency) {
+ if ((res = say_periodic_announcement(&qe, ringing))) {
goto stop;
}
}
--
To view, visit https://gerrit.asterisk.org/6634
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: Ieaeb7dbea8ae7073086b775fbafe0625b000b10a
Gerrit-Change-Number: 6634
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Stefan Engström <stefanen at kth.se>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20171004/05294dd3/attachment-0001.html>
More information about the asterisk-commits
mailing list