From fd6c821f6e583545e7ec0ba91d13c7583f20133d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 23 Apr 2009 00:30:43 +0000 Subject: [PATCH] change len to seconds git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13127 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index a5e62fffcf..b2f578ffdc 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -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);