]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix race
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 19 Nov 2008 16:49:05 +0000 (16:49 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 19 Nov 2008 16:49:05 +0000 (16:49 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10457 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_bridge.c

index 1ce1b015cec7cc3c4b509f81b1087615b81f68df..da51fc9ed1dfccb11b4d1391e84cfd343132bf29 100644 (file)
@@ -724,7 +724,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_signal_bridge(switch_core_session_t *
        switch_channel_set_variable(caller_channel, SWITCH_SIGNAL_BRIDGE_VARIABLE, switch_core_session_get_uuid(peer_session));
        switch_channel_set_variable(peer_channel, SWITCH_SIGNAL_BRIDGE_VARIABLE, switch_core_session_get_uuid(session));
 
-       switch_channel_set_flag(caller_channel, CF_ORIGINATOR);
+       switch_channel_set_state_flag(caller_channel, CF_ORIGINATOR);
 
        switch_channel_clear_state_handler(caller_channel, NULL);
        switch_channel_clear_state_handler(peer_channel, NULL);