[freeside-commits] branch master updated. f586fedb42ee93caf7923147c9bc70e0331421dd

Christopher Burger burgerc at freeside.biz
Thu Apr 5 06:53:11 PDT 2018


The branch, master has been updated
       via  f586fedb42ee93caf7923147c9bc70e0331421dd (commit)
      from  11bbf29de447fe39e9d7155fe280a0df70fa8c3c (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 f586fedb42ee93caf7923147c9bc70e0331421dd
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