Added daily_phone_number_call_limit campaign setting

git-svn-id: svn://192.168.202.10@3780 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2023-11-29 15:57:14 +00:00
parent a9b4927018
commit 0fe0e1f828
12 changed files with 216 additions and 37 deletions
+14 -3
View File
@@ -1,11 +1,12 @@
CALL COUNT LIMITS Started: 2020-11-22 Updated: 2021-07-20
CALL COUNT LIMITS Started: 2020-11-22 Updated: 2023-11-29
This document will go over the various "Call Count Limit" features available within VICIdial, including:
- Lifetime Lead Call Count Limits
- Daily Call Count Limits
- 24-Hour Call Count Limits (added at svn/trunk revision 3484)
- Daily Lead Call Count Limits
- 24-Hour Lead or Phone Number Call Count Limits (added at svn/trunk revision 3484)
- Daily Phone Number Call Count Limits System-wide (added at svn/trunk revision 3780)
@@ -31,6 +32,8 @@ Daily Call Count Limits must be enabled on the "Admin -> System Settings" page(E
There is also another setting on the campaign detail page related to this Daily Call Count Limit feature: Daily Call Limit Manual. If the Daily Call Count Limit is enabled, this setting will determine if manual dial calls will be counted and or restricted in the daily call count limit. The DISABLED option will not count manual dial calls or restrict them as part of the daily call count limits, only auto-dial calls would be counted restricted. If one of the COUNT options is used, then manual dial calls would be included in the daily call counts. If one of the RESTRICT options is used, then manual dial calls would be restricted as part of the daily call count limit. Default of this setting is DISABLED.
Another campaign-level daily call count feature option is a system-wide phone number daily call count limit, which can be enabled on a per-campaign basis. This will count and affect all calls placed from a campaign that it has been enabled on. The daily called counts for each phone number will be across the whole system and will reset at the "Timeclock End of Day" time that is set in System Settings.
NOTE: This feature may conflict with Auto-Alt-Dial features if they are enabled on a campaign.
NOTE: This feature may conflict with Lead Recycling features if they are enabled on a campaign.
NOTE: This feature will not affect ANYONE Scheduled Callbacks, they can be auto-dialed even if the resulting call will go beyond the daily call count limit.
@@ -137,3 +140,11 @@ ALTER TABLE vicidial_campaigns ADD call_limit_24hour_override VARCHAR(40) defaul
ALTER TABLE system_settings ADD call_limit_24hour ENUM('0','1') default '0';
ALTER TABLE system_settings ADD call_limit_24hour_reset DATETIME default '2000-01-01 00:00:01';
ALTER TABLE vicidial_campaigns ADD daily_phone_number_call_limit TINYINT(3) UNSIGNED default '0';
CREATE TABLE vicidial_phone_number_call_daily_counts (
phone_number VARCHAR(18) NOT NULL,
called_count TINYINT(3) UNSIGNED default '0',
modify_date DATETIME,
unique index vpncdc_phone_number (phone_number)
) ENGINE=MyISAM;