<p>Jason Tomlinson has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6124">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_sip.c:        Fix to stop MOH playing on held channel during attended transfer<br><br>After the attended transfer happens, the held channel still has<br>music on hold playing. So simply send an AST_CONTROL_UNHOLD frame to<br>the new bridge participants to ensure MOH is stopped<br><br>ASTERISK-27071<br><br>Change-Id: I6a373263d92cf27c513013baefdd72ae1864c2ce<br>---<br>M channels/chan_sip.c<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/24/6124/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/channels/chan_sip.c b/channels/chan_sip.c<br>index b19c669..7945fd3 100644<br>--- a/channels/chan_sip.c<br>+++ b/channels/chan_sip.c<br>@@ -25587,6 +25587,7 @@<br>            int *nounlock, struct sip_pvt *replaces_pvt, struct ast_channel *replaces_chan)<br> {<br>   struct ast_channel *c;<br>+       struct ast_bridge_channel *other;<br>     RAII_VAR(struct ast_bridge *, bridge, NULL, ao2_cleanup);<br> <br>  if (req->ignore) {<br>@@ -25622,6 +25623,11 @@<br>       ast_channel_unlock(replaces_chan);<br> <br>         if (bridge) {<br>+                /*Attended transfer is done so stop all music on hold */<br>+             AST_LIST_TRAVERSE(&bridge->channels, other, entry) {<br>+                  ast_queue_control(other->chan, AST_CONTROL_UNHOLD);<br>+               }<br>+<br>          if (ast_bridge_impart(bridge, c, replaces_chan, NULL,<br>                         AST_BRIDGE_IMPART_CHAN_INDEPENDENT)) {<br>                        ast_hangup(c);<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6124">change 6124</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/6124"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I6a373263d92cf27c513013baefdd72ae1864c2ce </div>
<div style="display:none"> Gerrit-Change-Number: 6124 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jason Tomlinson <j.tomlinson@isi-com.com> </div>