on Vitelity CDRs, import call duration to billsec, #27186
authorMark Wells <mark@freeside.biz>
Wed, 30 Apr 2014 21:25:01 +0000 (14:25 -0700)
committerMark Wells <mark@freeside.biz>
Wed, 30 Apr 2014 21:25:01 +0000 (14:25 -0700)
FS/FS/cdr/vitelity.pm

index 97ed0c3..eadaf47 100644 (file)
@@ -15,6 +15,10 @@ use FS::cdr qw(_cdr_date_parser_maker);
     _cdr_date_parser_maker('startdate'),
     'src',
     'dst',
+    sub { my($cdr, $field) = @_;
+          $cdr->set(duration => $field);
+          $cdr->set(billsec  => $field);
+        },
     'duration',
     'clid',
     'disposition',