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

FreeSWITCH SVN anthm at freeswitch.org
Mon May 18 10:39:59 PDT 2009


Author: anthm
Date: Mon May 18 12:39:59 2009
New Revision: 13382

Log:
MODAPP-280

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	Mon May 18 12:39:59 2009
@@ -860,7 +860,8 @@
 	char *argv[128] = { 0 };
 	int argc;
 	int cur;
-	
+	int done = 0;
+
     switch_core_session_get_read_impl(session, &read_impl);
 
 	if ((play_delimiter_val = switch_channel_get_variable(channel, "playback_delimiter"))) {
@@ -898,7 +899,7 @@
 		argv[0] = (char *)file;
 	}
 
-	for(cur = 0; switch_channel_ready(channel) && cur < argc; cur++) {
+	for(cur = 0; switch_channel_ready(channel) && !done && cur < argc; cur++) {
 		file = argv[cur];
 		asis = 0;
 		eof = 0;
@@ -1125,7 +1126,6 @@
 		ilen = samples;
 
 		for (;;) {
-			int done = 0;
 			int do_speed = 1;
 			int last_speed = -1;
 



More information about the Freeswitch-svn mailing list