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

FreeSWITCH SVN anthm at freeswitch.org
Tue Jan 6 13:22:01 PST 2009


Author: anthm
Date: Tue Jan  6 15:22:01 2009
New Revision: 11080

Log:
fix some media issues (shoud go into the 1.0 branch)

Modified:
   freeswitch/trunk/src/switch_ivr.c

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Tue Jan  6 15:22:01 2009
@@ -54,8 +54,9 @@
 	int sval = 0;
 	const char *var;
 	
-	if (switch_channel_media_ready(channel) && (var = switch_channel_get_variable(channel, SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE)) && (sval = atoi(var))) {
-		switch_channel_pre_answer(channel);
+	if (switch_channel_media_ready(channel) && 
+		(var = switch_channel_get_variable(channel, SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE)) && 
+		(sval = atoi(var)) && sval >= 1000) {
 		switch_core_session_get_read_impl(session, &imp);
 		
 		if (switch_core_codec_init(&codec,



More information about the Freeswitch-svn mailing list