Added max_inbound_auto_reenable system setting and function to re-enable agent in-group selections after max_inbound_calls has been raised

git-svn-id: svn://192.168.202.10@3975 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2026-04-10 00:40:17 +00:00
parent 11b535beba
commit a49abdc873
9 changed files with 489 additions and 118 deletions
+19
View File
@@ -3065,3 +3065,22 @@ UPDATE system_settings SET db_schema_version='1737',db_schema_update_date=NOW()
ALTER TABLE vicidial_campaigns ADD hangup_again_link ENUM('DISABLED','ENABLED') default 'ENABLED';
UPDATE system_settings SET db_schema_version='1738',db_schema_update_date=NOW() where db_schema_version < 1738;
CREATE TABLE vicidial_max_inbound_cache (
user VARCHAR(20),
campaign_id VARCHAR(20),
event_date DATETIME,
blended ENUM('1','0') default '0',
closer_campaigns TEXT,
max_inbound_count MEDIUMINT(7) default '0',
call_count_today MEDIUMINT(7) default '0',
status VARCHAR(20) default '',
notes VARCHAR(100) default '',
index (user),
index (event_date),
index (status)
) ENGINE=MyISAM;
ALTER TABLE system_settings ADD max_inbound_auto_reenable ENUM('0','1','2','3','4','5','6') default '1';
UPDATE system_settings SET db_schema_version='1739',db_schema_update_date=NOW() where db_schema_version < 1739;