From d8f7c98ae671c26153af6c21471d8195416a42a4 Mon Sep 17 00:00:00 2001 From: mattf Date: Sat, 25 Sep 2021 04:26:22 +0000 Subject: [PATCH] Fix for calls_today issue at timeclock-end-of-day git-svn-id: svn://192.168.202.10@3526 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl index 3b7d92b1..32d2cac7 100644 --- a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl +++ b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl @@ -152,9 +152,10 @@ # 210630-1630 - Remove commas from mailbox name before writing to conf file, use "Full Name" for a phone's mailbox name, if set # 210712-2312 - Added purging of vicidial_lead_24hour_calls table # 210827-0939 - Added PJSIP compatibility +# 210924-2333 - Fix for calls_today issue at timeclock-end-of-day # -$build = '210827-0939'; +$build = '210924-2333'; $DB=0; # Debug flag $teodDB=0; # flag to log Timeclock End of Day processes to log file @@ -1302,6 +1303,12 @@ if ($timeclock_end_of_day_NOW > 0) if($DB){print STDERR "\n|$affected_rows vicidial_live_inbound_agents call counts reset|\n";} if ($teodDB) {$event_string = "vicidial_live_inbound_agents records reset: $affected_rows"; &teod_logger;} + $stmtA = "update vicidial_live_agents SET calls_today=0;"; + if($DBX){print STDERR "\n|$stmtA|\n";} + $affected_rows = $dbhA->do($stmtA); + if($DB){print STDERR "\n|$affected_rows vicidial_live_agents call counts reset|\n";} + if ($teodDB) {$event_string = "vicidial_live_agents calls_today records reset: $affected_rows"; &teod_logger;} + $stmtA = "delete from vicidial_lead_call_daily_counts;"; if($DBX){print STDERR "\n|$stmtA|\n";} $affected_rows = $dbhA->do($stmtA);