projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5849811
)
for netcentrex CDRs, import duration to duration field (previously only billsec)
author
ivan
<ivan>
Tue, 7 Jul 2009 00:53:12 +0000
(
00:53
+0000)
committer
ivan
<ivan>
Tue, 7 Jul 2009 00:53:12 +0000
(
00:53
+0000)
FS/FS/cdr/netcentrex.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr/netcentrex.pm
b/FS/FS/cdr/netcentrex.pm
index
0cd5c7b
..
a434d5d
100644
(file)
--- a/
FS/FS/cdr/netcentrex.pm
+++ b/
FS/FS/cdr/netcentrex.pm
@@
-28,7
+28,10
@@
use FS::cdr qw(_cdr_date_parser_maker);
'', #04 Leg number (all 0)
_cdr_date_parser_maker('startdate'), #05 Authorize timestamp
_cdr_date_parser_maker('answerdate'), #06 Start timestamp
'', #04 Leg number (all 0)
_cdr_date_parser_maker('startdate'), #05 Authorize timestamp
_cdr_date_parser_maker('answerdate'), #06 Start timestamp
- 'billsec', #'duration', #07 Duration
+ sub { my( $cdr, $duration ) = @_; #07 Duration
+ $cdr->duration($duration);
+ $cdr->billsec( $duration);
+ },
_e164_parser_maker('src', 'charged_party'), #08 Caller
_e164_parser_maker('dcontext', 'dst', 'norewrite_pivotonly'=>1) ,#09 Callee
'channel', #10 Source IP
_e164_parser_maker('src', 'charged_party'), #08 Caller
_e164_parser_maker('dcontext', 'dst', 'norewrite_pivotonly'=>1) ,#09 Callee
'channel', #10 Source IP