summaryrefslogtreecommitdiff
path: root/FS/FS/detail_format/sum_duration_prefix.pm
diff options
context:
space:
mode:
authormark <mark>2012-01-16 20:10:10 +0000
committermark <mark>2012-01-16 20:10:10 +0000
commit57fe641524a2e3057f577074b26ab75b24534bbc (patch)
tree36ce20c005ed65fa45a487314f5766e3613744bc /FS/FS/detail_format/sum_duration_prefix.pm
parent171119e612fffaf5f0f053feffd12c55c72a4965 (diff)
skip toll-free calls in summary detail format, #16091
Diffstat (limited to 'FS/FS/detail_format/sum_duration_prefix.pm')
-rw-r--r--FS/FS/detail_format/sum_duration_prefix.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/detail_format/sum_duration_prefix.pm b/FS/FS/detail_format/sum_duration_prefix.pm
index afdc19601..19b6648f8 100644
--- a/FS/FS/detail_format/sum_duration_prefix.pm
+++ b/FS/FS/detail_format/sum_duration_prefix.pm
@@ -41,8 +41,10 @@ sub append {
# 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;