[freeside-commits] branch master updated. 7432b2f86473986a05b4107e218c997549b8ee2f

Jeremy Davis jeremyd at 420.am
Fri May 23 09:10:44 PDT 2014


The branch, master has been updated
       via  7432b2f86473986a05b4107e218c997549b8ee2f (commit)
      from  dc0f1291d98ac8f8d5b5da9465ab282f36c90034 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7432b2f86473986a05b4107e218c997549b8ee2f
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Fri May 23 12:10:41 2014 -0400

    28898 Fix date formatting in cisco format

diff --git a/FS/FS/cdr/cisco.pm b/FS/FS/cdr/cisco.pm
index db00db7..4d08507 100644
--- a/FS/FS/cdr/cisco.pm
+++ b/FS/FS/cdr/cisco.pm
@@ -4,6 +4,7 @@ use strict;
 use base qw( FS::cdr );
 use vars qw( %info );
 use FS::cdr qw( _cdr_date_parser_maker _cdr_min_parser_maker );
+use Date:Parse;
 
 %info = (
   'name'          => 'Cisco Unified Call Manager',
@@ -20,7 +21,11 @@ use FS::cdr qw( _cdr_date_parser_maker _cdr_min_parser_maker );
 							#globalCallID_callManagerId
 					      'clid',	#globalCallID_callId	
 					     skip(1),	#origLegCallIdentifier	
-                 			 'calldate',	#dateTimeOrigination
+                sub { my ($cdr, $calldate) = @_;
+                        $cdr->set('startdate', $calldate);
+                        $calldate = str2time($calldate);
+                        $cdr->set('calldate', $calldate);
+                                                  },    #dateTimeOrigination
 					     skip(3),   #origNodeId	
 							#origSpan
 							#origIpAddr	

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cdr/cisco.pm |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list