summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg
diff options
context:
space:
mode:
authorjeff <jeff>2009-04-07 01:20:38 +0000
committerjeff <jeff>2009-04-07 01:20:38 +0000
commit1a588ca640701eac6e6f1c9dcd31fdc48d93fc9e (patch)
treef2cced372df7fd2b619d258eb34b3aa4c9cae8d0 /FS/FS/part_pkg
parentba06d25a6e19e6d5534e90619cf233306fa2f49c (diff)
correct taqua toll free handling and hasten cdr import (skip uninteresting records)
Diffstat (limited to 'FS/FS/part_pkg')
-rw-r--r--FS/FS/part_pkg/voip_cdr.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm
index 9f6dd01..e25bba5 100644
--- a/FS/FS/part_pkg/voip_cdr.pm
+++ b/FS/FS/part_pkg/voip_cdr.pm
@@ -308,9 +308,7 @@ sub calc_recur {
###
my( $to_or_from, $number );
- if ( $cdr->dst =~ /^(\+?1)?8(8|[02-7]{2})/
- && ! $disable_tollfree
- )
+ if ( $cdr->is_tollfree && ! $disable_tollfree )
{ #tollfree call
$to_or_from = 'from';
$number = $cdr->src;