channel: Fix topology API locking.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 11 Aug 2017 21:31:45 +0000 (16:31 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 22 Aug 2017 16:59:49 +0000 (11:59 -0500)
commit9c70c883697d63e6f16b0b06b688a6131423c7e1
tree9993f85fd8ae520f7942479b42f5d0759b4073e3
parentc86619bab87d348cbcd2f3378e4b68c8cb20090b
channel: Fix topology API locking.

* ast_channel_request_stream_topology_change() must not be called with any
channel locks held.

* ast_channel_stream_topology_changed() must be called with only the
passed channel lock held.

ASTERISK-27212

Change-Id: I843de7956d9f1cc7cc02025aea3463d8fe19c691
include/asterisk/channel.h
main/channel.c
tests/test_stream.c