projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cfd8599
)
RT#39694: Evariste CDRs [Evariste TKT #2140] [fixed dates]
author
Jonathan Prykop
<jonathan@freeside.biz>
Wed, 10 Feb 2016 01:05:25 +0000
(19:05 -0600)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Wed, 10 Feb 2016 01:09:10 +0000
(19:09 -0600)
FS/bin/freeside-cdr-evariste-import
patch
|
blob
|
history
diff --git
a/FS/bin/freeside-cdr-evariste-import
b/FS/bin/freeside-cdr-evariste-import
index
f61d9d5
..
0487ae5
100755
(executable)
--- 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,
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'},
'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'},
'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'},
# from cdr_rate_postproc table
'billsec' => $row->{'rate_bill_sec'},
'upstream_price' => $row->{'rate_cost_net'},