Bridging: Fix orphaned bridge if neither of the joining channels can join.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 22 Oct 2013 17:06:21 +0000 (17:06 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 22 Oct 2013 17:06:21 +0000 (17:06 +0000)
commitd5db1f76f84f485bb0854b1ed986a04edf72e4c6
tree4416c04acc96e89325c994a07965d4abf3e3327e
parent8f03a463e1e04384fc8d5609d318566de2c7437b
Bridging: Fix orphaned bridge if neither of the joining channels can join.

The original issue noted that the bridge is orphaned when res_parking.so
is not loaded and a call uses the dial kK flags.

A similar issue happens when only one of the park flags is used.  In this
case you have the bridge with one or the other channel left in it.  The
channel and bridge will stay around until the channel hangs up.

* Fixed the initial bridge channel push failure to act as if the channel
were kicked out of the bridge.  The bridge then decides if it needs to be
dissolved.

(closes issue ASTERISK-22629)
Reported by: Kevin Harwell

Review: https://reviewboard.asterisk.org/r/2928/
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/bridge_channel_internal.h
main/bridge.c
main/bridge_channel.c