summaryrefslogtreecommitdiff
path: root/tests/test_cel.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2014-04-11 12:43:34 +0000
committerKinsey Moore <kmoore@digium.com>2014-04-11 12:43:34 +0000
commitd6e2c50058de41eb80d7abc27786825cb65ddccf (patch)
tree1070269c9ad4edfc57a420b648c75a5408f4372f /tests/test_cel.c
parentf65dd23bf4fbb1cb909755ac3d36fc6aa9f709bb (diff)
bridging: Ensure locking during snapshot creation
While the vast majority of bridge snapshot creation is locked properly, there are currently some instances that are not. This adds the missing locking to ensure bridge state is not malleable during snapshot creation. (closes issue ASTERISK-22904) Review: https://reviewboard.asterisk.org/r/3415/ Reported by: Matt Jordan ........ Merged revisions 412193 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests/test_cel.c')
-rw-r--r--tests/test_cel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_cel.c b/tests/test_cel.c
index de69008a9..791a73c6c 100644
--- a/tests/test_cel.c
+++ b/tests/test_cel.c
@@ -1213,8 +1213,10 @@ AST_TEST_DEFINE(test_cel_blind_transfer)
pair.bridge = bridge;
pair.channel = chan_alice;
+ ast_bridge_lock(bridge);
ast_bridge_publish_blind_transfer(1, AST_BRIDGE_TRANSFER_SUCCESS,
&pair, "transfer_context", "transfer_extension");
+ ast_bridge_unlock(bridge);
BLINDTRANSFER_EVENT(chan_alice, bridge, "transfer_extension", "transfer_context");
BRIDGE_EXIT(chan_alice, bridge);