[Freeswitch-svn] [commit] r13127 - freeswitch/trunk/src/mod/applications/mod_voicemail
FreeSWITCH SVN
anthm at freeswitch.org
Wed Apr 22 17:30:43 PDT 2009
Author: anthm
Date: Wed Apr 22 19:30:43 2009
New Revision: 13127
Log:
change len to seconds
Modified:
freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c Wed Apr 22 19:30:43 2009
@@ -1064,7 +1064,7 @@
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);
More information about the Freeswitch-svn
mailing list