git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4510 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2007-03-11 03:07:58 +00:00
parent e24008643e
commit 00a8f50871
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}
}