[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm,1.33,1.34

Ivan,,, ivan at wavetail.420.am
Fri Sep 12 15:48:21 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv18363

Modified Files:
	voip_cdr.pm 
Log Message:
not enough sleep to support multiple internal_prefixen, RT#3985

Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- voip_cdr.pm	12 Sep 2008 22:38:01 -0000	1.33
+++ voip_cdr.pm	12 Sep 2008 22:48:19 -0000	1.34
@@ -286,8 +286,12 @@
 
           #determine the country code
           my $intl_match = 0;
-          foreach (@intl) { $number =~ /^$_(((\d)(\d))(\d))(\d+)$/ and do { $intl_match++; last; }; }
-
+          foreach my $i (@intl) {
+            if ( $number =~ /^$i(((\d)(\d))(\d))(\d+)$/ ) {
+              $intl_match++;
+              last;
+            }
+          }
           my $countrycode;
           if ( $intl_match || $number =~ /^\+(((\d)(\d))(\d))(\d+)$/ ) {
 



More information about the freeside-commits mailing list