[freeside-commits] freeside/FS/FS/cdr telos_xml.pm, 1.1.2.2, 1.1.2.3

Mark Wells mark at wavetail.420.am
Thu Feb 17 16:47:15 PST 2011


Update of /home/cvs/cvsroot/freeside/FS/FS/cdr
In directory wavetail.420.am:/tmp/cvs-serv17634/cdr

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	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.2.2
retrieving revision 1.1.2.3
diff -u -w -d -r1.1.2.2 -r1.1.2.3
--- telos_xml.pm	25 Nov 2010 01:06:38 -0000	1.1.2.2
+++ telos_xml.pm	18 Feb 2011 00:47:13 -0000	1.1.2.3
@@ -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