summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-05-09 20:23:23 +0000
committerivan <ivan>2011-05-09 20:23:23 +0000
commit9531bdfc326d205f18a5d5f05312aa20ba1484bc (patch)
treee5c060e359988eb0f161625a2e17b7db9c3c39d7
parent8ce2222eeeb5039e160357d972b7eaa680214e2c (diff)
better retry behavior for non-found taqua CDR rewrites, RT#12181
-rw-r--r--FS/bin/freeside-cdrrewrited13
1 files changed, 3 insertions, 10 deletions
diff --git a/FS/bin/freeside-cdrrewrited b/FS/bin/freeside-cdrrewrited
index 7b4da102b..a365d73db 100644
--- a/FS/bin/freeside-cdrrewrited
+++ b/FS/bin/freeside-cdrrewrited
@@ -45,15 +45,8 @@ while (1) {
keys %accountcode_unmatch;
#hmm :/
my $extra_sql = '';
- if ( @recent ) {
- $extra_sql .= ' AND '.
- join(' AND ',
- map { my($sessionnum,$src) = split(',', $_);
- "( sessionnum != '$sessionnum' OR src != '$src' )";
- }
- @recent
- );
- }
+ $extra_sql .= ' AND acctid NOT IN (', join(',', @recent). ') '
+ if @recent;
my $found = 0;
foreach my $cdr (
@@ -117,7 +110,7 @@ while (1) {
$cdr->status('done'); #so it doesn't try to rate
} else {
warn "WARNING: $cantfind; will keep trying\n";
- $accountcode_unmatch{$cdr->sessionnum.','.$cdr->subscriber} = time;
+ $accountcode_unmatch{$cdr->acctid} = time;
next;
}