#30616 Fix AU toll-free
authorJeremy Davis <jeremyd@freeside.biz>
Thu, 28 Aug 2014 16:11:20 +0000 (12:11 -0400)
committerJeremy Davis <jeremyd@freeside.biz>
Thu, 28 Aug 2014 16:11:20 +0000 (12:11 -0400)
FS/FS/cdr.pm

index fce7a14..9859dfa 100644 (file)
@@ -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)