]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bridge_softmix.c: Fix crash if channel fails to join mixing tech. 83/2583/2
authorRichard Mudgett <rmudgett@digium.com>
Wed, 13 Apr 2016 18:20:23 +0000 (13:20 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 22 Apr 2016 21:44:04 +0000 (16:44 -0500)
commit5e388d41888a1e1c4061003a4a090dbe797bca7a
tree9332b77529bef77ab21bfaebfa5a3dae936edf6f
parent6112a94d03cd2fd64785c6dfba58f255f5644def
bridge_softmix.c: Fix crash if channel fails to join mixing tech.

softmix_bridge_join() failed because of an allocation failure.  To address
this, the softmix bridge technology now checks if the channel failed to
join softmix successfully.  In addition, the bridge now begins the process
of kicking the channel out of the bridge so we don't have channels
partially in the bridge for very long.

* Fix the test_channel_feature_hooks.c unit tests.  The test channel must
have a valid codec to join the simple_bridge technology.  This patch makes
joining a bridge more strict by not allowing partially joined channels to
remain in the bridge.

Change-Id: I97e2ade6a2bcd1214f24fb839fda948825b61a2b
bridges/bridge_softmix.c
include/asterisk/bridge_technology.h
main/bridge.c
tests/test_channel_feature_hooks.c