bridge: Fix stream topology/participant locking and video misrouting.
authorJoshua Colp <jcolp@digium.com>
Sun, 6 Aug 2017 16:15:34 +0000 (16:15 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 6 Aug 2017 16:15:34 +0000 (16:15 +0000)
commit88c65f7cb6f2064ba1b6a7713cb47c9a63790f8f
tree822227c4e1288aa685bcf996c6dd74303c69d6a9
parent2ba29df200f924f34d47371b83d0371c824bc76c
bridge: Fix stream topology/participant locking and video misrouting.

This change fixes a few locking issues and some video misrouting.

1. When accessing the stream topology of a channel the channel lock
must be held to guarantee the topology remains valid.

2. When a channel was joined to a bridge the bridge specific
implementation for stream mapping was not invoked, causing video
to be misrouted for a brief period of time.

ASTERISK-27182

Change-Id: I5d2f779248b84d41c5bb3896bf22ba324b336b03
bridges/bridge_softmix.c
main/bridge.c
main/bridge_channel.c