diff options
author | ivan <ivan> | 2009-01-19 03:50:47 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-01-19 03:50:47 +0000 |
commit | f32d703bd7bd47236487fb4a05e3d5efd3fb2ec0 (patch) | |
tree | bd990570884348cc78322a0ecc7e27eed1727b8b /FS/FS/rate.pm | |
parent | 389d926e17989db22affd78a4b0c6820fa152c9e (diff) |
10 digit prefix matching, RT#4403
Diffstat (limited to 'FS/FS/rate.pm')
-rw-r--r-- | FS/FS/rate.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/rate.pm b/FS/FS/rate.pm index 1285812..6430ff0 100644 --- a/FS/FS/rate.pm +++ b/FS/FS/rate.pm @@ -290,7 +290,7 @@ sub dest_detail { #find a rate prefix, first look at most specific (4 digits) then 3, etc., # finally trying the country code only my $rate_prefix = ''; - for my $len ( reverse(1..6) ) { + for my $len ( reverse(1..10) ) { $rate_prefix = qsearchs('rate_prefix', { 'countrycode' => $countrycode, #'npa' => { op=> 'LIKE', value=> substr($number, 0, $len) } |