projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15c1f19
)
#30616 Fix AU toll-free
author
Jeremy Davis
<jeremyd@freeside.biz>
Thu, 28 Aug 2014 16:11:20 +0000
(12:11 -0400)
committer
Jeremy Davis
<jeremyd@freeside.biz>
Thu, 28 Aug 2014 16:11:20 +0000
(12:11 -0400)
FS/FS/cdr.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr.pm
b/FS/FS/cdr.pm
index
fce7a14
..
9859dfa
100644
(file)
--- a/
FS/FS/cdr.pm
+++ b/
FS/FS/cdr.pm
@@
-370,7
+370,7
@@
sub is_tollfree {
my $field = scalar(@_) ? shift : 'dst';
my $country = $conf->config('tollfree-country') || '';
if ( $country eq 'AU' ) {
- ( $self->$field() =~ /^(\+?61)?
1800
/ ) ? 1 : 0;
+ ( $self->$field() =~ /^(\+?61)?
(1800|1300)
/ ) ? 1 : 0;
} elsif ( $country eq 'NZ' ) {
( $self->$field() =~ /^(\+?64)?(800|508)/ ) ? 1 : 0;
} else { #NANPA (US/Canaada)