summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2011-02-12 00:19:32 +0000
committerivan <ivan>2011-02-12 00:19:32 +0000
commit849d0cbec432a84a3572370abf52697205fd91dc (patch)
tree9ef188321be7071cda0c59fc4e61c75b3ed368da /FS
parentecaa27cc0539d08a90cdf7ea17c0ff1f5d268994 (diff)
handle domestic_prefix of 0, RT#11390
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_pkg/voip_cdr.pm2
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;
}