[freeside-commits] freeside/FS/FS/cdr telos_xml.pm,1.1,1.2
Mark Wells
mark at wavetail.420.am
Thu Feb 17 16:47:05 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/cdr
In directory wavetail.420.am:/tmp/cvs-serv17584/cdr
Modified Files:
telos_xml.pm
Log Message:
Telos XML SMS records, RT#10721
Index: telos_xml.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cdr/telos_xml.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- telos_xml.pm 25 Nov 2010 01:06:29 -0000 1.1
+++ telos_xml.pm 18 Feb 2011 00:47:02 -0000 1.2
@@ -13,6 +13,7 @@
'xml_format' => {
'xmlrow' => [ 'Telos_CDRS', 'CDRecord' ],
'xmlkeys' => [ qw(
+ record_type
seq_num
a_party_num
b_party_num
@@ -23,6 +24,12 @@
},
'import_fields' => [
+ sub { my($cdr, $data, $conf, $param) = @_;
+ $cdr->cdrtypenum($data);
+ # CDR type 2 = SMS records, set billsec = 1 so that
+ # they'll be charged under per-call rating
+ $cdr->billsec(1) if ( $data == 2 );
+ },
'uniqueid',
'src',
'dst', # usually empty for some reason
More information about the freeside-commits
mailing list