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

index f465048..7c759f5 100644 (file)
@@ -105,7 +105,7 @@ while (1) {
 
         my $cantfind = "can't find primary CDR with session ". $cdr->sessionnum.
                        ", src ". $cdr->subscriber;
-        if ( $cdr->calldate_unix + $accountcode_giveup > time ) {
+        if ( $cdr->calldate_unix - $accountcode_giveup > time ) {
           push @status, 'taqua-accountcode-NOTFOUND';
           $cdr->status('done'); #so it doesn't try to rate
         } else {