should fix asterisks in destination numbers causing invoice generation to barf, RT...
authorivan <ivan>
Tue, 11 May 2010 06:57:53 +0000 (06:57 +0000)
committerivan <ivan>
Tue, 11 May 2010 06:57:53 +0000 (06:57 +0000)
FS/FS/part_pkg/voip_cdr.pm

index 38e5941..62214df 100644 (file)
@@ -399,6 +399,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!";