mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
FS-4965 calling the variable playback_last_offset_pos instead
This commit is contained in:
parent
1ddf632eef
commit
0846195cd9
@ -1720,6 +1720,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
||||
}
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "done playing file %s\n", file);
|
||||
switch_channel_set_variable_printf(channel, "playback_last_offset_pos", "%d", fh->offset_pos);
|
||||
|
||||
if (read_impl.samples_per_second) {
|
||||
switch_channel_set_variable_printf(channel, "playback_seconds", "%d", fh->samples_in / fh->native_rate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user