From: Ken Rice Date: Wed, 10 Jul 2013 14:43:33 +0000 (-0500) Subject: FS-5589 --resolve X-Git-Tag: v1.5.3~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41880353f9afc3ad8cd6682e5903b864e5c536fc;p=thirdparty%2Ffreeswitch.git FS-5589 --resolve --- diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 1f2f076a06..7222c43533 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -1705,7 +1705,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess if (read_impl.samples_per_second) { switch_channel_set_variable_printf(channel, "playback_seconds", "%d", fh->samples_in / fh->native_rate); - switch_channel_set_variable_printf(channel, "playback_ms", "%d", fh->samples_in / fh->native_rate); + switch_channel_set_variable_printf(channel, "playback_ms", "%d", fh->samples_in / (fh->native_rate / 1000)); } switch_channel_set_variable_printf(channel, "playback_samples", "%d", fh->samples_in);