[freeside-commits] branch master updated. 1dbab258aed2f501761d69a2afcdf6b977721dfe

Jeremy Davis jeremyd at 420.am
Thu Aug 28 09:11:40 PDT 2014


The branch, master has been updated
       via  1dbab258aed2f501761d69a2afcdf6b977721dfe (commit)
      from  15c1f19f13159664062bfd0cde07f9f117a5fca6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1dbab258aed2f501761d69a2afcdf6b977721dfe
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Thu Aug 28 12:11:20 2014 -0400

    #30616 Fix AU toll-free

diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index fce7a14..9859dfa 100644
--- 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)

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cdr.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)




More information about the freeside-commits mailing list