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

index 7134ccc..77b9af5 100644 (file)
@@ -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!";