Added TILTX features for pre-carrier call filtering
git-svn-id: svn://192.168.202.10@3449 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -148,9 +148,10 @@
|
||||
# 210311-2229 - Added purging of old records from vicidial_two_factor_auth
|
||||
# 210325-2145 - Fix for -adfill-delay= CLI flag, Issue #1266
|
||||
# 210429-1644 - Added mohsuggest config for SIP and IAX phones
|
||||
# 210605-1407 - Added purging of vicidial_tiltx_shaken_log log entries
|
||||
#
|
||||
|
||||
$build = '210429-1644';
|
||||
$build = '210605-1407';
|
||||
|
||||
$DB=0; # Debug flag
|
||||
$teodDB=0; # flag to log Timeclock End of Day processes to log file
|
||||
@@ -1938,6 +1939,24 @@ if ($timeclock_end_of_day_NOW > 0)
|
||||
##### END vicidial_shared_log end of day process removing records older than 7 days #####
|
||||
|
||||
|
||||
##### BEGIN vicidial_tiltx_shaken_log end of day process removing records older than 7 days #####
|
||||
$stmtA = "DELETE from vicidial_tiltx_shaken_log where db_time < \"$SDSQLdate\";";
|
||||
if($DBX){print STDERR "\n|$stmtA|\n";}
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
if($DB){print STDERR "\n|$affected_rows vicidial_tiltx_shaken_log records older than 7 days purged|\n";}
|
||||
if ($teodDB) {$event_string = "vicidial_tiltx_shaken_log records older than 7 days purged: |$stmtA|$affected_rows|"; &teod_logger;}
|
||||
|
||||
$stmtA = "optimize table vicidial_tiltx_shaken_log;";
|
||||
if($DBX){print STDERR "\n|$stmtA|\n";}
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
if ($DB) {print "|",$aryA[0],"|",$aryA[1],"|",$aryA[2],"|",$aryA[3],"|","\n";}
|
||||
$sthA->finish();
|
||||
##### END vicidial_tiltx_shaken_log end of day process removing records older than 7 days #####
|
||||
|
||||
|
||||
##### BEGIN vicidial_two_factor_auth end of day process removing expired and older records #####
|
||||
$stmtA = "DELETE from vicidial_two_factor_auth where (auth_exp_date < NOW()) or ( (auth_code_exp_date < NOW()) and (auth_stage != '1') );";
|
||||
if($DBX){print STDERR "\n|$stmtA|\n";}
|
||||
|
||||
Reference in New Issue
Block a user