diff options
author | ivan <ivan> | 2011-02-12 00:19:32 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-02-12 00:19:32 +0000 |
commit | 849d0cbec432a84a3572370abf52697205fd91dc (patch) | |
tree | 9ef188321be7071cda0c59fc4e61c75b3ed368da /FS | |
parent | ecaa27cc0539d08a90cdf7ea17c0ff1f5d268994 (diff) |
handle domestic_prefix of 0, RT#11390
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/part_pkg/voip_cdr.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm index 3996b8b84..f4741ab47 100644 --- a/FS/FS/part_pkg/voip_cdr.pm +++ b/FS/FS/part_pkg/voip_cdr.pm @@ -473,7 +473,7 @@ sub calc_usage { } } else { - $countrycode = $domestic_prefix || '1'; + $countrycode = length($domestic_prefix) ? $domestic_prefix : '1'; $number =~ s/^$countrycode//;# if length($number) > 10; } |