[Freeswitch-svn] [commit] r9232 - freeswitch/trunk/src/mod/applications/mod_voicemail

Freeswitch SVN anthm at freeswitch.org
Wed Aug 6 19:33:58 EDT 2008


Author: anthm
Date: Wed Aug  6 19:33:58 2008
New Revision: 9232

Modified:
   freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c

Log:
add patch from MODAPP-123

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 Aug  6 19:33:58 2008
@@ -25,6 +25,7 @@
  * 
  * Anthony Minessale II <anthmct at yahoo.com>
  * Bret McDanel <trixter AT 0xdecafbad.com>
+ * John Wehle (john at feith.com)
  *
  * mod_voicemail.c -- Voicemail Module
  *
@@ -2785,8 +2786,8 @@
 	char read_date[80] = "";
 	char rss_date[80] = "";
 	switch_size_t retsize;
-	long l_created = 0;
-	long l_read = 0;
+	switch_time_t l_created = 0;
+	switch_time_t l_read = 0;
 	long l_duration = 0;
 	switch_core_time_duration_t duration;
 	char duration_str[80];
@@ -2796,11 +2797,11 @@
 	char title_aft[128 * 3] = "";
 
 	if (argc > 0) {
-		l_created = atol(argv[0]) * 1000000;
+		l_created = switch_time_make (atol(argv[0]), 0);
 	}
 
 	if (argc > 1) {
-		l_read = atol(argv[1]) * 1000000;
+		l_read = switch_time_make (atol(argv[1]), 0);
 	}
 
 	if (argc > 9) {
@@ -2877,8 +2878,8 @@
 	char *fname;
 	switch_size_t flen;
 	switch_file_t *fd;
-	long l_created = 0;
-	long l_read = 0;
+	switch_time_t l_created = 0;
+	switch_time_t l_read = 0;
 	long l_duration = 0;
 	switch_core_time_duration_t duration;
 	char duration_str[80];
@@ -2886,11 +2887,11 @@
 	char heard[80];
 
 	if (argc > 0) {
-		l_created = atol(argv[0]) * 1000000;
+		l_created = switch_time_make (atol(argv[0]), 0);
 	}
 
 	if (argc > 1) {
-		l_read = atol(argv[1]) * 1000000;
+		l_read = switch_time_make (atol(argv[1]), 0);
 	}
 
 	if (argc > 9) {



More information about the Freeswitch-svn mailing list