1 package FS::cdr::telos_xml;
4 use vars qw( @ISA %info );
5 use FS::cdr qw(_cdr_date_parser_maker);
10 'name' => 'Telos (XML)',
14 'xmlrow' => [ 'Telos_CDRS', 'CDRecord' ],
27 sub { my($cdr, $data, $conf, $param) = @_;
28 $cdr->cdrtypenum($data);
29 # CDR type 2 = SMS records, set billsec = 1 so that
30 # they'll be charged under per-call rating
31 $cdr->billsec(1) if ( $data == 2 );
35 'dst', # usually empty for some reason
36 _cdr_date_parser_maker('startdate'),
37 _cdr_date_parser_maker('answerdate'),
38 _cdr_date_parser_maker('enddate'),