better retry behavior for non-found taqua CDR rewrites, RT#12181
authorivan <ivan>
Mon, 9 May 2011 22:14:36 +0000 (22:14 +0000)
committerivan <ivan>
Mon, 9 May 2011 22:14:36 +0000 (22:14 +0000)
FS/bin/freeside-cdrrewrited

index ac0a1ce..bcbde1a 100644 (file)
@@ -106,10 +106,10 @@ while (1) {
         my $cantfind = "can't find primary CDR with session ". $cdr->sessionnum.
                        ", src ". $cdr->subscriber;
         if ( $cdr->calldate_unix + $accountcode_giveup < time ) {
-          warnERROR: $cantfind; giving up\n";
+          warn "ERROR: $cantfind; giving up\n";
           push @status, 'taqua-accountcode-NOTFOUND';
           $cdr->status('done'); #so it doesn't try to rate
-          delete $accountcode_unmatch($cdr->acctid}; #so it doesn't suck mem
+          delete $accountcode_unmatch{$cdr->acctid}; #so it doesn't suck mem
         } else {
           warn "WARNING: $cantfind; will keep trying\n";
           $accountcode_unmatch{$cdr->acctid} = time;