[Freeswitch-svn] [commit] r9630 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Tue Sep 23 17:39:10 EDT 2008


Author: anthm
Date: Tue Sep 23 17:39:09 2008
New Revision: 9630

Modified:
   freeswitch/trunk/src/switch_ivr_bridge.c

Log:
fix flag

Modified: freeswitch/trunk/src/switch_ivr_bridge.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_bridge.c	(original)
+++ freeswitch/trunk/src/switch_ivr_bridge.c	Tue Sep 23 17:39:09 2008
@@ -133,7 +133,6 @@
 
 	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 @@
 				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;
 				}
 			}



More information about the Freeswitch-svn mailing list