[freeside-commits] branch FREESIDE_3_BRANCH updated. 38f381389a48a37a7ed6d6ea5e963166adb47318

Jeremy Davis jeremyd at 420.am
Thu Aug 28 09:19:49 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  38f381389a48a37a7ed6d6ea5e963166adb47318 (commit)
      from  6816a23d70984027517d33d6eb0ccd49ddd57704 (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 38f381389a48a37a7ed6d6ea5e963166adb47318
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Thu Aug 28 12:19:36 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