summaryrefslogtreecommitdiff
path: root/main/bridge.c
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2015-04-07 16:40:44 +0000
committerKevin Harwell <kharwell@digium.com>2015-04-07 16:40:44 +0000
commitd754f70239921561449884e85bd9794b5f515cd9 (patch)
tree3cff4702b2bde335b9c68a8d544562d02e63a8b2 /main/bridge.c
parentc516981dc7706979ae3e5d2a44927e005ec4d9f4 (diff)
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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@434240 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/bridge.c')
-rw-r--r--main/bridge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/bridge.c b/main/bridge.c
index 9c1d044e6..a76ac77cc 100644
--- a/main/bridge.c
+++ b/main/bridge.c
@@ -4540,6 +4540,7 @@ enum ast_transfer_result ast_bridge_transfer_attended(struct ast_channel *to_tra
ast_bridge_unlock(to_transferee_bridge);
ast_bridge_unlock(to_target_bridge);
+ ast_softhangup(to_transfer_target, AST_SOFTHANGUP_DEV);
goto end;
}