summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2010-05-11 06:58:08 +0000
committerivan <ivan>2010-05-11 06:58:08 +0000
commit74d3163d0e813f4b806be01fbe8239427057cf0a (patch)
tree52607d803bcc79974f333378a81438b3e13d0b74 /FS
parentd206257b5dbb4c3b79a2bb61a3801f41d54e5d59 (diff)
should fix asterisks in destination numbers causing invoice generation to barf, RT#7840
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_pkg/voip_cdr.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm
index 7134ccccc..77b9af553 100644
--- a/FS/FS/part_pkg/voip_cdr.pm
+++ b/FS/FS/part_pkg/voip_cdr.pm
@@ -402,6 +402,8 @@ sub calc_usage {
warn "rating call $to_or_from +$countrycode $number\n" if $DEBUG;
$pretty_destnum = "+$countrycode $number";
+ #asterisks here causes inserting the detail to barf, so:
+ $pretty_destnum =~ s/\*//g;
my $rate = qsearchs('rate', { 'ratenum' => $ratenum })
or die "ratenum $ratenum not found!";