]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
change len to seconds
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 23 Apr 2009 00:30:43 +0000 (00:30 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 23 Apr 2009 00:30:43 +0000 (00:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13127 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index a5e62fffcf8d1c366d9482d9d08c5594306520d1..b2f578ffdc671f226b5daa38925ff6c2626f6988 100644 (file)
@@ -1064,7 +1064,7 @@ switch_status_t measure_file_len(const char *path, switch_size_t *message_len)
                                                          SWITCH_FILE_FLAG_READ | SWITCH_FILE_DATA_SHORT, NULL) == SWITCH_STATUS_SUCCESS) {
 
                if (switch_core_file_seek(&fh, &pos, 0, SEEK_END) == SWITCH_STATUS_SUCCESS) {
-                       *message_len = pos;
+                       *message_len = pos / fh.samplerate;
                        status = SWITCH_STATUS_SUCCESS;
                }
                switch_core_file_close(&fh);