[freeside-commits] branch FREESIDE_3_BRANCH updated. f6938ed944c173bb36480d1d46da42db951cf9cc

Jeremy Davis jeremyd at 420.am
Fri May 23 09:11:33 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  f6938ed944c173bb36480d1d46da42db951cf9cc (commit)
      from  38c28f5486c5fb02d1d6edfebf878b10a2a9239e (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 f6938ed944c173bb36480d1d46da42db951cf9cc
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Fri May 23 12:11:40 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