<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/20020">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span></span><br></pre><div style="white-space:pre-wrap">Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit

</div><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;"><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/+/20020">change 20020</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/+/20020"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: I5675df11e739be5226b328f8828d4b8d81fbefb4 </div>
<div style="display:none"> Gerrit-Change-Number: 20020 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Henning Westerholt <hw@gilawa.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: N A <asterisk@phreaknet.org> </div>
<div style="display:none"> Gerrit-CC: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>