<p>Kevin Harwell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/5892">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bridge: stuck channel(s) after failed attended transfer<br><br>If an attended transfer failed it was possible for some of the channels<br>involved to get "stuck" because Asterisk was not hanging up the transfer target.<br><br>This patch ensures Asterisk hangs up the transfer target when an attended<br>transfer failure occurs.<br><br>ASTERISK-27075 #close<br><br>Change-Id: I98a6ecd92d3461ab98c36f0d9451d23adaf3e5f9<br>---<br>M main/bridge.c<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/92/5892/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/bridge.c b/main/bridge.c<br>index b2beb86..1ff7c4f 100644<br>--- a/main/bridge.c<br>+++ b/main/bridge.c<br>@@ -4787,7 +4787,11 @@<br>    res = AST_BRIDGE_TRANSFER_SUCCESS;<br> <br> end:<br>- if (res == AST_BRIDGE_TRANSFER_SUCCESS && hangup_target) {<br>+   /*<br>+    * Hang up the transfer target if the transfer was not successful. However we also<br>+    * want to hang it up if it was successful but told to do so.<br>+         */<br>+  if (res != AST_BRIDGE_TRANSFER_SUCCESS || hangup_target) {<br>            ast_softhangup(to_transfer_target, AST_SOFTHANGUP_DEV);<br>       }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/5892">change 5892</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/5892"/><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: I98a6ecd92d3461ab98c36f0d9451d23adaf3e5f9 </div>
<div style="display:none"> Gerrit-Change-Number: 5892 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>