<p>Henning Westerholt has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/20050">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_pjsip: fix music on hold continues after INVITE with replaces<br><br>In a three party scenario with INVITE with replaces, we need to<br>unhold the call, otherwise one party continues to get music on<br>hold, and the call is not properly bridged between them.<br><br>ASTERISK-30428<br><br>Change-Id: I5675df11e739be5226b328f8828d4b8d81fbefb4<br>---<br>M res/res_pjsip_refer.c<br>1 file changed, 19 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/50/20050/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip_refer.c b/res/res_pjsip_refer.c</span><br><span>index 8890d23..a20bf6b 100644</span><br><span>--- a/res/res_pjsip_refer.c</span><br><span>+++ b/res/res_pjsip_refer.c</span><br><span>@@ -1019,6 +1019,10 @@</span><br><span>  ast_debug(3, "INVITE with Replaces being attempted.  '%s' --> '%s'\n",</span><br><span>          ast_channel_name(session->channel), ast_channel_name(invite.channel));</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* Unhold the channel now, as later we are not having access to it anymore */</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_queue_unhold(session->channel);</span><br><span style="color: hsl(120, 100%, 40%);">+        ast_queue_frame(session->channel, &ast_null_frame);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         if (!invite.bridge) {</span><br><span>                struct ast_channel *chan = session->channel;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/20050">change 20050</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/20050"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 20 </div>
<div style="display:none"> Gerrit-Change-Id: I5675df11e739be5226b328f8828d4b8d81fbefb4 </div>
<div style="display:none"> Gerrit-Change-Number: 20050 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Henning Westerholt <hw@gilawa.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>