]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9860
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 3 Jan 2017 19:06:08 +0000 (13:06 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 3 Jan 2017 19:06:20 +0000 (13:06 -0600)
src/switch_ivr_play_say.c

index 79d4576a3d31950a534190eb080188f297a93969..c83f2451a3cdd344f53be7060f9ba1a40bced970 100644 (file)
@@ -1970,6 +1970,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
 
        arg_recursion_check_stop(args);
 
+       if (timeout_samples && switch_channel_var_true(channel, "playback_timeout_cumulative")) {
+               switch_channel_set_variable_printf(channel, "playback_timeout_sec", "%d", timeout_samples / read_impl.actual_samples_per_second);
+       }
+
+
        return status;
 }