From: Anthony Minessale Date: Wed, 19 Nov 2008 16:49:05 +0000 (+0000) Subject: fix race X-Git-Tag: v1.0.2~465 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5e8b31b29a28c395fafde381b2aadf48e1fa67;p=thirdparty%2Ffreeswitch.git fix race git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10457 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index 1ce1b015ce..da51fc9ed1 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -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);