diff options
author | Kevin Harwell <kharwell@digium.com> | 2015-04-07 16:42:18 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2015-04-07 16:42:18 +0000 |
commit | 153c4044e4301975faea70b8faa8eeab30d391a9 (patch) | |
tree | 845b87bae63cb7dfa704b25978de4968a8b33b3d | |
parent | 1eba6abae58cce851bce7f1f4a0d5f78865e4064 (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/
........
Merged revisions 434240 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@434241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/bridge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/bridge.c b/main/bridge.c index 2c0776191..55fc7fdf2 100644 --- a/main/bridge.c +++ b/main/bridge.c @@ -4538,6 +4538,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; } |