11 Mar
2007
11 Mar
'07
3:07 a.m.
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; + } } }