1 package FS::cdr::sonus;
4 use base qw( FS::cdr );
6 use FS::cdr qw( _cdr_date_parser_maker _cdr_min_parser_maker );
11 'header' => 0, #0 default, set to 1 to ignore the first line, or
12 # to higher numbers to ignore that number of lines
13 'type' => 'csv', #csv (default), fixedlength or xls
14 'sep_char' => ',', #for csv, defaults to ,
16 'src', # also customer id
18 _cdr_date_parser_maker('startdate'),
19 _cdr_date_parser_maker('enddate'),
20 _cdr_min_parser_maker,
23 my ($cdr, $rate) = @_;
24 $cdr->upstream_price(sprintf("%.4f", $rate * $cdr->duration / 60));
29 sub skip { map {''} (1..$_[0]) }