FS-3645 --resolve

This commit is contained in:
Anthony Minessale 2011-10-29 09:33:57 -05:00
parent 9215838393
commit e689e651ac
1 changed files with 5 additions and 3 deletions

View File

@ -1583,10 +1583,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t
}
fh->channels = channels;
fh->pre_buffer_datalen = SWITCH_DEFAULT_FILE_BUFFER_LEN;
vval = switch_channel_get_variable(channel, "enable_file_write_buffering");
if (!vval || switch_true(vval)) {
fh->pre_buffer_datalen = SWITCH_DEFAULT_FILE_BUFFER_LEN;
}
if (!switch_is_file_path(file)) {
char *tfile = NULL;
char *e;