[freeside-commits] branch FREESIDE_4_BRANCH updated. e95fa38dfa01fde9157a6a9852173bb6cddacd24

Christopher Burger burgerc at freeside.biz
Thu Apr 5 07:45:26 PDT 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  e95fa38dfa01fde9157a6a9852173bb6cddacd24 (commit)
      from  61536edebfca5fab5892614a3714f68e43d52327 (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 e95fa38dfa01fde9157a6a9852173bb6cddacd24
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Thu Apr 5 09:52:42 2018 -0400

    RT# 80114 - added the population of startdate and billsec from ani cdr

diff --git a/FS/FS/cdr/ani_networks.pm b/FS/FS/cdr/ani_networks.pm
index cac30c488..b00ea1360 100644
--- a/FS/FS/cdr/ani_networks.pm
+++ b/FS/FS/cdr/ani_networks.pm
@@ -37,42 +37,40 @@ use Time::Local;
     terminating_ocn:4:208:211
   )],
   'import_fields'      => [
-
-    sub { #call_date and time
+    sub {               #call_date and time
      my($cdr, $data, $conf, $param) = @_;
      $data =~ /^(\d\d\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/ or die "unparsable record_date: $data";
      $cdr->set('calldate', "$2/$3/$1 $4:$5:$6");
+     $cdr->set('startdate', "$2/$3/$1 $4:$5:$6");
     },
-
-    'charged_party',     #bill to number
-    '',    			#translate number
-
-    'src', 			#originating number
-
-    '',    			#originating lata
-    '',    			#originating city
-    '',   			#originating state
-    '',   			#originating country
-
-    'dst', 			#terminating number
-
-    '',    			#terminating lata
-    '',    			#terminating city
-    '',    			#terminating state
-    '',    			#terminating city code
-    '',    			#terminating country
-
-    '',    			#call type
-    '',    			#call transport
-    'accountcode',       #account code
-    '',    			#info digits
-    'duration',    		#duration
-    '',    			#wholesale amount
-    '',    			#cic
-    'src_lrn',    		#originating lrn
-    'dst_lrn',    		#terminating lrn
-    '',    			#originating ocn
-    '',    			#terminating ocn
+    'charged_party',    #bill to number
+    '',                 #translate number
+    'src',              #originating number
+    '',                 #originating lata
+    '',                 #originating city
+    '',                 #originating state
+    '',                 #originating country
+    'dst',              #terminating number
+    '',                 #terminating lata
+    '',                 #terminating city
+    '',                 #terminating state
+    '',                 #terminating city code
+    '',                 #terminating country
+    '',                 #call type
+    '',                 #call transport
+    'accountcode',      #account code
+    '',                 #info digits
+    sub {               #duration
+     my($cdr, $field) = @_;
+     $cdr->set(duration => $field);
+     $cdr->set(billsec  => $field);
+    },
+    '',                 #wholesale amount
+    '',                 #cic
+    'src_lrn',          #originating lrn
+    'dst_lrn',          #terminating lrn
+    '',                 #originating ocn
+    '',                 #terminating ocn
 
   ],
 

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

Summary of changes:
 FS/FS/cdr/ani_networks.pm | 62 +++++++++++++++++++++++------------------------
 1 file changed, 30 insertions(+), 32 deletions(-)




More information about the freeside-commits mailing list