]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3645 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Sat, 29 Oct 2011 14:33:57 +0000 (09:33 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Sat, 29 Oct 2011 14:33:57 +0000 (09:33 -0500)
src/switch_ivr_async.c

index 1a0a341c9a5a6fcb1534b78daff6900298bd5da4..960a8d51cd2c3ba8a6434359b4710ade5edc460e 100644 (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;