projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3f4b529
)
not enough sleep to support multiple internal_prefixen, RT#3985
author
ivan
<ivan>
Fri, 12 Sep 2008 22:48:20 +0000
(22:48 +0000)
committer
ivan
<ivan>
Fri, 12 Sep 2008 22:48:20 +0000
(22:48 +0000)
FS/FS/part_pkg/voip_cdr.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/voip_cdr.pm
b/FS/FS/part_pkg/voip_cdr.pm
index
dbaf4c4
..
a959d1b
100644
(file)
--- a/
FS/FS/part_pkg/voip_cdr.pm
+++ b/
FS/FS/part_pkg/voip_cdr.pm
@@
-228,8
+228,12
@@
sub calc_recur {
#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+)$/ ) {