summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-09-06 16:08:39 -0700
committerMark Wells <mark@freeside.biz>2016-09-06 16:08:59 -0700
commit85ff12a43b72ca58a647b91504c8a9adec6ef0a2 (patch)
treeafecc532aced917fa58b342436f0ddfe8a1d407d
parentbd815f2d23d02a60d90af922044d16be04a2a485 (diff)
fix for #72355
-rwxr-xr-xbin/taqua-accountcode-rewrite7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/taqua-accountcode-rewrite b/bin/taqua-accountcode-rewrite
index 97e0a46e5..386fc9dd3 100755
--- a/bin/taqua-accountcode-rewrite
+++ b/bin/taqua-accountcode-rewrite
@@ -2,9 +2,8 @@
my $usage = "
This script is for fixing CDRs that were supposed to receive Taqua
-accountcode/caller ID rewrites but didn't. It will skip records that had
-any rewrites performed, but will operate on CDRs that have already been
-billed. Options:
+accountcode/caller ID rewrites but didn't. It will reprocess records that
+were already rewritten, so use with caution. Options:
-s DATE: find calls on or after DATE (required)
-e DATE: find calls on or before DATE (optional, defaults to right now)
@@ -25,7 +24,7 @@ die $usage unless $opt{start};
my $fixed = 0;
my $notfound = 0;
my $failed = 0;
-my $extra_sql = 'WHERE lastapp IS NOT NULL AND freesiderewritestatus IS NULL' .
+my $extra_sql = 'WHERE lastapp IS NOT NULL '.
' AND cdrtypenum = 1'.
' AND calldate >= to_timestamp('.$opt{start}.')';
if ( $opt{end} ) {