<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6634">View Change</a></p><div style="white-space:pre-wrap">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
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_queue.c: Fix announcements when announce-to-first-user not enabled.<br><br>The previous patch for ASTERISK-27216 made it so you wouldn't get any<br>position or periodic announcements unless you had announce-to-first-user<br>enabled. The announce-to-first-user feature was added by ASTERISK_21782<br>as a result of the patch which introduced the redundant announcements that<br>ASTERISK-27216 removes.<br><br>* By noting that the makeannouncement variable is used to suppresses the<br>first user announcement, we set its initial value to the<br>announce-to-first-user enable setting.<br><br>ASTERISK-27216<br><br>Change-Id: Ieaeb7dbea8ae7073086b775fbafe0625b000b10a<br>---<br>M apps/app_queue.c<br>1 file changed, 7 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/apps/app_queue.c b/apps/app_queue.c<br>index 04a4a04..c4c3dbc 100644<br>--- a/apps/app_queue.c<br>+++ b/apps/app_queue.c<br>@@ -8042,7 +8042,7 @@<br> goto stop;<br> }<br> <br>- makeannouncement = 0;<br>+ makeannouncement = qe.parent->announce_to_first_user;<br> <br> for (;;) {<br> /* This is the wait loop for the head caller*/<br>@@ -8062,15 +8062,17 @@<br> <br> if (makeannouncement) {<br> /* Make a position announcement, if enabled */<br>- if (qe.parent->announcefrequency && qe.parent->announce_to_first_user)<br>- if ((res = say_position(&qe,ringing)))<br>+ if (qe.parent->announcefrequency) {<br>+ if ((res = say_position(&qe, ringing))) {<br> goto stop;<br>+ }<br>+ }<br> }<br> makeannouncement = 1;<br> <br> /* Make a periodic announcement, if enabled */<br>- if (qe.parent->periodicannouncefrequency && qe.parent->announce_to_first_user) {<br>- if ((res = say_periodic_announcement(&qe,ringing))) {<br>+ if (qe.parent->periodicannouncefrequency) {<br>+ if ((res = say_periodic_announcement(&qe, ringing))) {<br> goto stop;<br> }<br> }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6634">change 6634</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6634"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ieaeb7dbea8ae7073086b775fbafe0625b000b10a </div>
<div style="display:none"> Gerrit-Change-Number: 6634 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Stefan Engström <stefanen@kth.se> </div>