Added login_kickall system setting
git-svn-id: svn://192.168.202.10@3649 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1972,7 +1972,8 @@ allowed_sip_stacks ENUM('SIP','PJSIP','SIP_and_PJSIP') default 'SIP',
|
||||
agent_hide_hangup ENUM('1','0','2','3','4','5','6') default '0',
|
||||
allow_web_debug ENUM('0','1','2','3','4','5','6') default '0',
|
||||
max_logged_in_agents ENUM('0','1','2','3','4','5','6','7') default '0',
|
||||
user_codes_admin ENUM('0','1','2','3','4','5','6','7') default '0'
|
||||
user_codes_admin ENUM('0','1','2','3','4','5','6','7') default '0',
|
||||
login_kickall ENUM('0','1','2','3','4','5','6','7') default '0'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_campaigns_list_mix (
|
||||
@@ -5166,4 +5167,4 @@ INSERT INTO `wallboard_reports` VALUES ('AGENTS_AND_QUEUES','Agents and Queues',
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1667',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1668',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -2039,3 +2039,7 @@ index (user)
|
||||
CREATE UNIQUE INDEX vicidial_user_logins_daily_user on vicidial_user_logins_daily(login_day, user);
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1667',db_schema_update_date=NOW() where db_schema_version < 1667;
|
||||
|
||||
ALTER TABLE system_settings ADD login_kickall ENUM('0','1','2','3','4','5','6','7') default '0';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1668',db_schema_update_date=NOW() where db_schema_version < 1668;
|
||||
|
||||
@@ -702,10 +702,11 @@
|
||||
# 220916-0906 - Added INSERT_before_body_close options.php setting, Issue #1375
|
||||
# 220922-1032 - Fix for loading internal chat while agent screen is still loading
|
||||
# 221012-1723 - Fix for webform URLs updates with correct recording variables
|
||||
# 221020-1651 - Added login_kickall system setting
|
||||
#
|
||||
|
||||
$version = '2.14-670c';
|
||||
$build = '221012-1723';
|
||||
$version = '2.14-671c';
|
||||
$build = '221020-1651';
|
||||
$php_script = 'vicidial.php';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=98;
|
||||
@@ -804,7 +805,7 @@ $random = (rand(1000000, 9999999) + 10000000);
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS AND USER LANGUAGE LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url,custom_fields_enabled,pllb_grouping_limit,qc_features_active,allow_emails,callback_time_24hour,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_third_webform,default_language,active_modules,allow_chats,chat_url,default_phone_code,agent_screen_colors,manual_auto_next,agent_xfer_park_3way,admin_web_directory,agent_script,agent_push_events,agent_push_url,agent_logout_link,agentonly_callback_campaign_lock,manual_dial_validation,mute_recordings,enable_second_script,enable_first_webform,recording_buttons,outbound_cid_any,browser_call_alerts,manual_dial_phone_strip,require_password_length,pass_hash_enabled,agent_hidden_sound_seconds,agent_hidden_sound,agent_hidden_sound_volume,agent_screen_timer,agent_hide_hangup,allow_web_debug,max_logged_in_agents FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url,custom_fields_enabled,pllb_grouping_limit,qc_features_active,allow_emails,callback_time_24hour,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_third_webform,default_language,active_modules,allow_chats,chat_url,default_phone_code,agent_screen_colors,manual_auto_next,agent_xfer_park_3way,admin_web_directory,agent_script,agent_push_events,agent_push_url,agent_logout_link,agentonly_callback_campaign_lock,manual_dial_validation,mute_recordings,enable_second_script,enable_first_webform,recording_buttons,outbound_cid_any,browser_call_alerts,manual_dial_phone_strip,require_password_length,pass_hash_enabled,agent_hidden_sound_seconds,agent_hidden_sound,agent_hidden_sound_volume,agent_screen_timer,agent_hide_hangup,allow_web_debug,max_logged_in_agents,login_kickall FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01001',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
||||
#if ($DB) {echo "$stmt\n";}
|
||||
@@ -865,6 +866,7 @@ if ($qm_conf_ct > 0)
|
||||
$SSagent_hide_hangup = $row[50];
|
||||
$SSallow_web_debug = $row[51];
|
||||
$SSmax_logged_in_agents = $row[52];
|
||||
$SSlogin_kickall = $row[53];
|
||||
if ( ($SSagent_hidden_sound == '---NONE---') or ($SSagent_hidden_sound == '') ) {$SSagent_hidden_sound_seconds=0;}
|
||||
}
|
||||
else
|
||||
@@ -4015,6 +4017,23 @@ else
|
||||
$SIqueryCID = "$SIPSAK_prefix$VD_campaign$DS$CIDdate";
|
||||
}
|
||||
|
||||
if ($SSlogin_kickall > 0)
|
||||
{
|
||||
$local_DEF = 'Local/5555';
|
||||
$local_AMP = '@';
|
||||
$kick_local_channel = "$local_DEF$session_id$local_AMP$ext_context";
|
||||
$queryCID = "ULKA3459$StarTtime";
|
||||
|
||||
$login_kickall_stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$queryCID','Channel: $kick_local_channel','Context: $ext_context','Exten: 8300','Priority: 1','Callerid: $queryCID','','','','$VD_login','$phone_login');";
|
||||
if ($DB) {echo "$login_kickall_stmt\n";}
|
||||
$rslt=mysql_to_mysqli($login_kickall_stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01XXX',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
||||
$affected_rows = mysqli_affected_rows($link);
|
||||
echo "<!-- kickall command issued: $session_id from phone: $phone_login -->\n";
|
||||
|
||||
sleep(2);
|
||||
}
|
||||
|
||||
$WebPhonEurl='';
|
||||
$webphone_content='';
|
||||
$TEMP_SIP_user_DiaL = $SIP_user_DiaL;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
# version: 20220921215701
|
||||
# version: 20221020163901
|
||||
users-user User ID <QXZ>This field is where you put the users ID number, can be up to 20 digits in length, Must be at least 2 characters in length. We strongly recommend not reusing user accounts for different users, for reporting accuracy. To disable a user account, set the Active option to -N-.</QXZ>
|
||||
users-pass Password <QXZ>This field is where you put the users password. Must be at least 2 characters in length. Only letters and numbers are allowed in user passwords. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters.</QXZ>
|
||||
users-force_change_password Force Change Password <QXZ>If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage or the agent screen. Default is N.</QXZ>
|
||||
@@ -1078,6 +1078,7 @@ settings-agent_xfer_park_3way Agent Screen Park Xfer Button <QXZ>This option def
|
||||
settings-agent_logout_link Agent Screen Logout Link Credentials <QXZ>This option controls whether the agent screen logout link will contain the agent credentials as a part of the link, or if the link will go to a blank login page. -0- will go to a blank form and -1- will go to a form that has the user credentials filled in.</QXZ>
|
||||
settings-agent_soundboards Agent Soundboards <QXZ>This option allows you to create agent soundboards that allow an agent in the user screen to click on audio files to have them play in their session. Default is 0 for disabled.</QXZ>
|
||||
settings-browser_call_alerts Agent Browser Call Alerts <QXZ>This option, if enabled, will allow you to select a sound, at the campaign level, when a call arrives in an agent session, to be played by the web browser program that the agent is using to log into the Agent Screen with. This is only recommended for agents using softphones or webphones. If you decide to use this option, you may want to contact your system administrator to disable the default enter and leave session sounds on your dialers. Default is 0 for disabled.</QXZ>
|
||||
settings-login_kickall Agent Login Kick-all <QXZ>If enabled, when an agent logs into the agent screen, any channels that were already in the agent session will be hung up before the agent is placed into the session. This will delay the agent login by a couple of seconds. Default is 0 for disabled.</QXZ>
|
||||
settings-agent_hidden_sound Agent Hidden Browser Sound <QXZ>This feature will allow you to have the selected sound file played to the Agent Screen when the web browser window with the Agent Screen in it is hidden or the agent changes to a different application on their computer. To enable this feature, the Agent Hidden Browser Sound Seconds below must be greater than 0. This feature can be used to disable web browser javascript throttling if set to an audible sound at a 20 second interval. We have tested this with the -click_quiet- sound file at a volume of -25-.</QXZ>
|
||||
settings-agent_hidden_sound_seconds Agent Hidden Browser Sound Seconds <QXZ>This is the interval at which the selected Agent Hidden Browser Sound above will be played. If this is set to 20, then the Agent Hidden Browser Sound will be played every 20 seconds that the agent screen is hidden from view. Default is 0 for disabled.</QXZ>
|
||||
settings-enable_pause_code_limits Enable Pause Code Time Limits <QXZ>This option allows you to be able to set the Time Limit field in campaign pause codes, which will change the color of the agent on the Real-Time Report if they are in that pause code for more than the defined amount of seconds. Default is 0 for disabled.</QXZ>
|
||||
|
||||
Reference in New Issue
Block a user