diff options
author | mark <mark> | 2010-11-25 01:06:29 +0000 |
---|---|---|
committer | mark <mark> | 2010-11-25 01:06:29 +0000 |
commit | 39289cd1e5a06044aa9a8dc3d2e4d8c9ffb02b11 (patch) | |
tree | 305c995e91e8549820ef00c3aef16a0bed644495 /FS/FS/cdr/telos_xml.pm | |
parent | 54f3136cfa1230e9a80641c7477ed75c0910d48a (diff) |
Telos XML CDR format, RT#10721
Diffstat (limited to 'FS/FS/cdr/telos_xml.pm')
-rw-r--r-- | FS/FS/cdr/telos_xml.pm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/FS/FS/cdr/telos_xml.pm b/FS/FS/cdr/telos_xml.pm new file mode 100644 index 0000000..a144f0b --- /dev/null +++ b/FS/FS/cdr/telos_xml.pm @@ -0,0 +1,36 @@ +package FS::cdr::telos_xml; + +use strict; +use vars qw( @ISA %info ); +use FS::cdr qw(_cdr_date_parser_maker); + +@ISA = qw(FS::cdr); + +%info = ( + 'name' => 'Telos (XML)', + 'weight' => 530, + 'type' => 'xml', + 'xml_format' => { + 'xmlrow' => [ 'Telos_CDRS', 'CDRecord' ], + 'xmlkeys' => [ qw( + seq_num + a_party_num + b_party_num + seize + answer + disc + ) ], + }, + + 'import_fields' => [ + 'uniqueid', + 'src', + 'dst', # usually empty for some reason + _cdr_date_parser_maker('startdate'), + _cdr_date_parser_maker('answerdate'), + _cdr_date_parser_maker('enddate'), + ], + +); + +1; |