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

Freeswitch SVN brian at freeswitch.org
Sat Mar 10 22:07:58 EST 2007


Author: brian
Date: Sat Mar 10 22:07:58 2007
New Revision: 4510

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
tweak

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Sat Mar 10 22:07:58 2007
@@ -538,10 +538,12 @@
 				fh->silence_hits = org_silence_hits;
 			}
         }
-
+		
 		if (!switch_test_flag(fh, SWITCH_FILE_PAUSE)) {
 			len = (switch_size_t) read_frame->datalen / 2;
-			switch_core_file_write(fh, read_frame->data, &len);
+			if (switch_core_file_write(fh, read_frame->data, &len) != SWITCH_STATUS_SUCCESS) {
+				break;
+			}
 		}
 	}
 



More information about the Freeswitch-svn mailing list