]> 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:02 +0000 (09:44 -0500)
src/switch_ivr_play_say.c

index 1f2f076a06289834916e99fc10e9476c516d823c..7222c43533ffd212ad50309557e0af63125d1748 100644 (file)
@@ -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);