From: Anthony Minessale Date: Tue, 23 Sep 2008 21:39:09 +0000 (+0000) Subject: fix flag X-Git-Tag: v1.0.2~1152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8947d49abd20d88be80e86626146bbe44be5f166;p=thirdparty%2Ffreeswitch.git fix flag git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9630 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index 400537f978..b97cf750e7 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -133,7 +133,6 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj) switch_channel_set_flag(chan_a, CF_BRIDGED); - switch_channel_wait_for_flag(chan_b, CF_BRIDGED, SWITCH_TRUE, 10000, chan_a); if (!switch_channel_test_flag(chan_b, CF_BRIDGED)) { @@ -329,7 +328,7 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj) if (silence_val) { switch_generate_sln_silence((int16_t *) silence_frame.data, silence_frame.samples, silence_val); read_frame = &silence_frame; - } else { + } else if (!switch_channel_test_flag(chan_b, CF_ACCEPT_CNG)) { continue; } }