a tollfree regex that captures 88x and works with +1
authorjeff <jeff>
Tue, 7 Apr 2009 02:50:46 +0000 (02:50 +0000)
committerjeff <jeff>
Tue, 7 Apr 2009 02:50:46 +0000 (02:50 +0000)
FS/FS/cdr.pm

index bc5bb8d..0230adc 100644 (file)
@@ -277,7 +277,7 @@ sub check {
 
 sub is_tollfree {
   my $self = shift;
-  ( $self->dst =~ /^(\+?1)?8([02-8])\1/ ) ? 1 : 0;
+  ( $self->dst =~ /^(\+?1)?8(8|([02-7])\3)/ ) ? 1 : 0;
 }
 
 =item set_charged_party