<p>Ben Smithurst has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16042">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Take the transfer target off hold when handling INVITE-with-Replaces.<br><br>This fixes a problem with attended remote transfers, where the phone<br>puts the target on hold immediately before sending REFER to another<br>server, when the calls are on different servers.  When the REFER<br>is routed across to the other server using an external_replaces hook<br>the on hold call is removed from hold again and the transfer continues<br>normally.<br><br>Change-Id: Ibfe359c5ce0338b2df9d1b2347bc684d4a21461a<br>---<br>M res/res_pjsip_refer.c<br>1 file changed, 3 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/42/16042/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 750894b..1c0ff93 100644</span><br><span>--- a/res/res_pjsip_refer.c</span><br><span>+++ b/res/res_pjsip_refer.c</span><br><span>@@ -982,6 +982,9 @@</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%);">+ /* Take the transfer target off hold. */</span><br><span style="color: hsl(120, 100%, 40%);">+      ast_queue_unhold(invite.channel);</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/+/16042">change 16042</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/+/16042"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15.7 </div>
<div style="display:none"> Gerrit-Change-Id: Ibfe359c5ce0338b2df9d1b2347bc684d4a21461a </div>
<div style="display:none"> Gerrit-Change-Number: 16042 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Ben Smithurst <ben.smithurst@gradwell.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>