[freeside-commits] branch master updated. acfce7fca2901c4a9a4c1dadbd101b84e5669173

Mark Wells mark at 420.am
Tue Sep 6 16:09:55 PDT 2016


The branch, master has been updated
       via  acfce7fca2901c4a9a4c1dadbd101b84e5669173 (commit)
      from  f4bb9273f1ba174858e221fd37f6dd1dca4119e9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit acfce7fca2901c4a9a4c1dadbd101b84e5669173
Author: Mark Wells <mark at freeside.biz>
Date:   Tue Sep 6 16:08:39 2016 -0700

    fix for #72355

diff --git a/bin/taqua-accountcode-rewrite b/bin/taqua-accountcode-rewrite
index 97e0a46..386fc9d 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} ) {

-----------------------------------------------------------------------

Summary of changes:
 bin/taqua-accountcode-rewrite |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list