[asterisk-commits] kharwell: branch 13 r434240 - /branches/13/main/bridge.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 7 11:40:47 CDT 2015


Author: kharwell
Date: Tue Apr  7 11:40:44 2015
New Revision: 434240

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=434240
Log:
bridge.c: Hangup attended transfer target after it has been swapped out

After completing an attended transfer the transfer target channel (the one that
gets swapped out) was not being hung up after leaving the bridge. This resulted
in a channel possibly being left around. Added an explicit softhangup for the
channel in question after the transfer is successfully completed in order to
make sure the channel is hung up.

ASTERISK-24782 #close
Reported by: John Bigelow
Review: https://reviewboard.asterisk.org/r/4575/


Modified:
    branches/13/main/bridge.c

Modified: branches/13/main/bridge.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/main/bridge.c?view=diff&rev=434240&r1=434239&r2=434240
==============================================================================
--- branches/13/main/bridge.c (original)
+++ branches/13/main/bridge.c Tue Apr  7 11:40:44 2015
@@ -4540,6 +4540,7 @@
 		ast_bridge_unlock(to_transferee_bridge);
 		ast_bridge_unlock(to_target_bridge);
 
+		ast_softhangup(to_transfer_target, AST_SOFTHANGUP_DEV);
 		goto end;
 	}
 




More information about the asterisk-commits mailing list