summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2009-07-07 00:53:12 +0000
committerivan <ivan>2009-07-07 00:53:12 +0000
commit395432a840d5dd564e4b94fb9215a89bec1542ee (patch)
tree308e24d8da35c4ac0fb5af4ed519ab7a96687bc9 /FS
parent5849811bcc0f85c9c92d89f3948c5779dd67998d (diff)
for netcentrex CDRs, import duration to duration field (previously only billsec)
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cdr/netcentrex.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cdr/netcentrex.pm b/FS/FS/cdr/netcentrex.pm
index 0cd5c7b34..a434d5d5f 100644
--- 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
- '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