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

FreeSWITCH SVN anthm at freeswitch.org
Fri Feb 6 12:44:53 PST 2009


Author: anthm
Date: Fri Feb  6 14:44:53 2009
New Revision: 11677

Log:
add enable_file_write_buffering variable

Modified:
   freeswitch/trunk/src/switch_ivr_play_say.c

Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c	(original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c	Fri Feb  6 14:44:53 2009
@@ -420,7 +420,10 @@
 		}
 	}
 
-	fh->pre_buffer_datalen = SWITCH_DEFAULT_FILE_BUFFER_LEN;
+	vval = switch_channel_get_variable(channel, "enable_file_write_buffering");
+	if (!vval || !switch_true(vval)) {
+		fh->pre_buffer_datalen = SWITCH_DEFAULT_FILE_BUFFER_LEN;
+	}
 
 	if (switch_core_file_open(fh,
 							  file,



More information about the Freeswitch-svn mailing list