]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5589 --resolve
authorKen Rice <krice@freeswitch.org>
Wed, 10 Jul 2013 14:43:33 +0000 (09:43 -0500)
committerKen Rice <krice@freeswitch.org>
Wed, 10 Jul 2013 14:44:33 +0000 (09:44 -0500)
src/switch_ivr_play_say.c

index e792c0d32bb31709076cf8c615a5f6c972e0d660..3739e25308597820d2782713e0cea388fdbc51d8 100644 (file)
@@ -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);