projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d19ad78
)
better match for toll-free prefixes
author
ivan
<ivan>
Thu, 1 Mar 2007 20:56:26 +0000
(20:56 +0000)
committer
ivan
<ivan>
Thu, 1 Mar 2007 20:56:26 +0000
(20:56 +0000)
FS/FS/part_pkg/voip_cdr.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/voip_cdr.pm
b/FS/FS/part_pkg/voip_cdr.pm
index
500a1b0
..
2341fd0
100644
(file)
--- a/
FS/FS/part_pkg/voip_cdr.pm
+++ b/
FS/FS/part_pkg/voip_cdr.pm
@@
-130,7
+130,7
@@
sub calc_recur {
###
my( $to_or_from, $number );
- if ( $cdr->dst =~ /^(\+?1)?8
[02-8]{2}
/ ) { #tollfree call
+ if ( $cdr->dst =~ /^(\+?1)?8
([02-8])\1
/ ) { #tollfree call
$to_or_from = 'from';
$number = $cdr->src;
} else { #regular call