[freeside-commits] branch FREESIDE_3_BRANCH updated. 95e4856fce90f6549822707c1dd28bdcbec5f540

Jonathan Prykop jonathan at 420.am
Tue Feb 9 17:12:45 PST 2016


The branch, FREESIDE_3_BRANCH has been updated
       via  95e4856fce90f6549822707c1dd28bdcbec5f540 (commit)
      from  7e39ac20af1070bd6521f6199b043abf2afa73d7 (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 95e4856fce90f6549822707c1dd28bdcbec5f540
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Tue Feb 9 19:05:25 2016 -0600

    RT#39694: Evariste CDRs [Evariste TKT #2140] [fixed dates]

diff --git a/FS/bin/freeside-cdr-evariste-import b/FS/bin/freeside-cdr-evariste-import
index f61d9d5..0487ae5 100755
--- a/FS/bin/freeside-cdr-evariste-import
+++ b/FS/bin/freeside-cdr-evariste-import
@@ -98,14 +98,16 @@ while (my $row = $csth->fetchrow_hashref) {
   my $cdr = FS::cdr->new ({
     # from cdr table
     'cdrbatchnum'             => $cdr_batch->cdrbatchnum,
-    'uniqueid'                => $row->{'cdr_id'},
+    'uniqueid'                => $row->{'id'},
     'src'                     => $row->{'src'},
     'dst'                     => $row->{'dest'},
-    'startdate'               => str2time($row->{'start_time'}),
-    'answerdate'              => str2time($row->{'answer_time'}),
-    'enddate'                 => str2time($row->{'end_time'}),
+    'startdate'               => int(str2time($row->{'start_time'})),
+    'answerdate'              => int(str2time($row->{'answer_time'})),
+    'enddate'                 => int(str2time($row->{'end_time'})),
     'duration'                => $row->{'duration_sec'},
     'accountcode'             => $row->{'customer_id'},
+    'src_ip_addr'             => $row->{'src_ip'},
+    'dst_ip_addr'             => $row->{'dest_ip'},
     # from cdr_rate_postproc table
     'billsec'                 => $row->{'rate_bill_sec'},
     'upstream_price'          => $row->{'rate_cost_net'},

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

Summary of changes:
 FS/bin/freeside-cdr-evariste-import |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list