[freeside-commits] freeside/FS/FS/cdr netcentrex.pm,1.2,1.3
Ivan,,,
ivan at wavetail.420.am
Mon Jul 6 17:53:14 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/cdr
In directory wavetail.420.am:/tmp/cvs-serv9981
Modified Files:
netcentrex.pm
Log Message:
for netcentrex CDRs, import duration to duration field (previously only billsec)
Index: netcentrex.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cdr/netcentrex.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- netcentrex.pm 29 May 2009 23:17:24 -0000 1.2
+++ netcentrex.pm 7 Jul 2009 00:53:12 -0000 1.3
@@ -28,7 +28,10 @@
'', #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
More information about the freeside-commits
mailing list