From: Ken Rice Date: Wed, 10 Jul 2013 14:43:33 +0000 (-0500) Subject: FS-5589 --resolve X-Git-Tag: v1.2.12~61^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f2a8791385e11f73db294709b62e6add98ec070;p=thirdparty%2Ffreeswitch.git FS-5589 --resolve --- diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index e792c0d32b..3739e25308 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -1704,7 +1704,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);