From: Brian West Date: Sun, 11 Mar 2007 03:07:58 +0000 (+0000) Subject: tweak X-Git-Tag: v1.0-beta1~905 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00a8f508719ae4e617d7abb99d36f19380117206;p=thirdparty%2Ffreeswitch.git tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4510 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 3e3fc121f7..514b33ccb1 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -538,10 +538,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se 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; + } } }