Added 24-Hour Called Count Limit campaign feature, allows you to limit the number of calls to be placed to a phone number or lead in a 24-hour time period. Also allows for state-based override settings. For more information, read the CALL_COUNT_LIMITS.txt doc.

git-svn-id: svn://192.168.202.10@3483 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2021-07-16 05:49:21 +00:00
parent d4f52b1f3c
commit 888a13abfc
13 changed files with 931 additions and 71 deletions
+17 -1
View File
@@ -150,9 +150,10 @@
# 210429-1644 - Added mohsuggest config for SIP and IAX phones
# 210605-1407 - Added purging of vicidial_tiltx_shaken_log log entries
# 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
#
$build = '210630-1630';
$build = '210712-2312';
$DB=0; # Debug flag
$teodDB=0; # flag to log Timeclock End of Day processes to log file
@@ -1991,6 +1992,21 @@ if ($timeclock_end_of_day_NOW > 0)
##### END vicidial_lead_messages end of day process removing records older than 1 day #####
##### BEGIN vicidial_lead_24hour_calls end of day process removing records older than 1 day #####
$stmtA = "DELETE FROM vicidial_lead_24hour_calls WHERE call_date < \"$RMSQLdate\";";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows = $sthA->rows;
$event_string = "$sthArows rows deleted from vicidial_lead_24hour_calls table";
if (!$Q) {print "$event_string \n";}
if ($teodDB) {&teod_logger;}
$stmtA = "optimize table vicidial_lead_24hour_calls;";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
##### END vicidial_lead_24hour_calls end of day process removing records older than 1 day #####
##### BEGIN usacan_phone_dialcode_fix funciton #####
if ($usacan_phone_dialcode_fix > 0)
{