bridge_native_rtp: Ensure bridge is torn down
authorKinsey Moore <kmoore@digium.com>
Tue, 29 Oct 2013 12:30:21 +0000 (12:30 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 29 Oct 2013 12:30:21 +0000 (12:30 +0000)
commit6c417b0475acea32c508777c94975a6c7abc2ed5
tree21ea732a1446d8575eb6f72f0bca0b3e6cf9259e
parentfd98037fe29a28844b0da8090cdc55180decb0cd
bridge_native_rtp: Ensure bridge is torn down

When a bridge transitions away from one tech to another, the tech going
away is provided a dummy bridge with no channels in it to tear down.
Currently this means that the teardown code exits prematurely and does
not tear anything down. This change tears down RTP bridging for the
channel provided in the leave bridge tech callback.

This also reverts the majority of r400403 since it is now redundant.

(closes issue ASTERISK-22628)
(closes issue ASTERISK-22676)
Reported by: John Bigelow
Reported by: Kevin Harwell
Tested by: John Bigelow
Review: https://reviewboard.asterisk.org/r/2905/
Patches:
    native_rtp_fix.diff uploaded by Kinsey Moore (License 6273)
........

Merged revisions 402148 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
bridges/bridge_native_rtp.c