<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7617">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bridge: Stop music on hold on adding an arbitrary channel to a bridge<br><br>When a channel that is on hold gets added to a bridge by<br>the Bridge AMI action or the dialplan application of the same name,<br>music continues to play, causing "robotic sound".<br><br>This commit adds a call to ast_moh_stop to stop the music.<br>Also, it makes the AMI Park action use the right MOH class when the<br>channel gets parked.<br><br>Reported by: Zane Conkle<br><br>ASTERISK-25079 #close<br><br>Change-Id: I4b129c5a20c15e63968842460ac5a1a85903cf9f<br>---<br>M main/bridge.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/bridge.c b/main/bridge.c<br>index 5d9c0c1..7a937ea 100644<br>--- a/main/bridge.c<br>+++ b/main/bridge.c<br>@@ -2511,6 +2511,8 @@<br> RAII_VAR(struct ast_bridge *, chan_bridge, NULL, ao2_cleanup);<br> RAII_VAR(struct ast_channel *, yanked_chan, NULL, ao2_cleanup);<br> <br>+ ast_moh_stop(chan);<br>+<br> ast_channel_lock(chan);<br> chan_bridge = ast_channel_get_bridge(chan);<br> ast_channel_unlock(chan);<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7617">change 7617</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/7617"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I4b129c5a20c15e63968842460ac5a1a85903cf9f </div>
<div style="display:none"> Gerrit-Change-Number: 7617 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Ivan Poddubny <ivan.poddubny@gmail.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: Richard Mudgett <rmudgett@digium.com> </div>