]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bridge_channel.c: Fix FRACK when mapping frames to the bridge.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 16 Aug 2017 22:50:18 +0000 (17:50 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 22 Aug 2017 16:57:21 +0000 (11:57 -0500)
commit3e9cd53b5cfd41cd1d5e14d4e5a690c3633e2bd3
tree4d15d88f67074f922f5d9f541a5e77b5bd02247e
parentefa62628147c2607033e77f8854fd47bd51d3928
bridge_channel.c: Fix FRACK when mapping frames to the bridge.

* Add protection checks when mapping streams to the bridge.  The channel
and bridge may be in the process of updating the stream mapping when a
media frame comes in so we may not be able to map the frame at the time.

* We need to map the streams to the bridge's stream numbers right before
they are written into the bridge.  That way we don't have to keep
locking/unlocking the bridge and we won't have any synchronization
problems before the frames actually go into the bridge.

* Protect the deferred queue with the bridge_channel lock.

ASTERISK-27212

Change-Id: Id6860dd61b594b90c8395f6e2c0150219094c21a
main/bridge_channel.c