[freeside-commits] freeside/FS/FS/detail_format sum_duration_prefix.pm, 1.3, 1.4

Mark Wells mark at wavetail.420.am
Mon Jan 16 12:10:12 PST 2012


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

Modified Files:
	sum_duration_prefix.pm 
Log Message:
skip toll-free calls in summary detail format, #16091

Index: sum_duration_prefix.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/detail_format/sum_duration_prefix.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- sum_duration_prefix.pm	5 Jan 2012 20:51:22 -0000	1.3
+++ sum_duration_prefix.pm	16 Jan 2012 20:10:10 -0000	1.4
@@ -41,8 +41,10 @@
     # but interstate-ness should be symmetric, yes?  if A places an
     # interstate call to B, then B receives an interstate call from A.
     my $subtotal = $prefixes->{$prefix}{$cdr->rated_ratename}
-      or die "unknown rated_ratename '" .$cdr->rated_ratename.
-             "' in CDR #".$cdr->acctid."\n";
+      or next; 
+      # silently skip calls that are neither interstate nor intrastate
+    #or die "unknown rated_ratename '" .$cdr->rated_ratename.
+    #         "' in CDR #".$cdr->acctid."\n";
     $subtotal->{count}++;
     $subtotal->{duration} += $object->rated_seconds;
     $subtotal->{amount} += $object->rated_price;



More information about the freeside-commits mailing list