Added Enhanced Agent Monitoring system settings option
git-svn-id: svn://192.168.202.10@3894 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_timeonVDADall.php
|
||||
#
|
||||
# Copyright (C) 2024 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2025 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# live real-time stats for the VICIDIAL Auto-Dialer all servers
|
||||
#
|
||||
@@ -133,10 +133,11 @@
|
||||
# 230811-1530 - Added realtime monitoring display information
|
||||
# 231115-1656 - Added RS_no_DEAD_status and RS_hide_CUST_info options.php settings
|
||||
# 240801-1130 - Code updates for PHP8 compatibility
|
||||
# 250103-0929 - Added enhanced_agent_monitoring code
|
||||
#
|
||||
|
||||
$version = '2.14-117';
|
||||
$build = '231115-1656';
|
||||
$version = '2.14-118';
|
||||
$build = '250103-0929';
|
||||
$php_script='AST_timeonVDADall.php';
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
@@ -285,7 +286,7 @@ $db_source = 'M';
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,agent_whisper_enabled,allow_chats,cache_carrier_stats_realtime,report_default_format,ofcom_uk_drop_calc,enable_pause_code_limits,timeclock_end_of_day,allow_web_debug FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,agent_whisper_enabled,allow_chats,cache_carrier_stats_realtime,report_default_format,ofcom_uk_drop_calc,enable_pause_code_limits,timeclock_end_of_day,allow_web_debug,enhanced_agent_monitoring FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
#if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -306,6 +307,7 @@ if ($qm_conf_ct > 0)
|
||||
$SSenable_pause_code_limits = $row[11];
|
||||
$SStimeclock_end_of_day = $row[12];
|
||||
$SSallow_web_debug = $row[13];
|
||||
$SSenhanced_agent_monitoring = $row[14];
|
||||
}
|
||||
if ($SSallow_web_debug < 1) {$DB=0;}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
# version: 20241208171601
|
||||
# version: 20250103083301
|
||||
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, unless the User Password Minimum Length system setting is enabled, which will require a longer password. 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>
|
||||
@@ -1207,6 +1207,7 @@ settings-campaign_cid_areacodes_enabled Enable CID Groups and Campaign Areacode
|
||||
settings-outbound_cid_any Outbound Call Any CID <QXZ>This option allows you to use any Outbound CallerID that is set in the Agent API external_dial function to override whatever the settings for the campaign say the CID should be for that call. Default is DISABLED.</QXZ>
|
||||
settings-opensips_cid_name OpenSIPs CID Name Support <QXZ>If your system is using an OpenSIPs server to route outbound phone calls, and your system administrator has set up that server to be able to send CallerID Name through it, you can enable this setting to allow you to define an OpenSIPs CallerID Name in the Campaign Detail screen. Default is 0 for disabled.</QXZ>
|
||||
settings-did_ra_extensions_enabled Enable Remote Agent Extension Overrides <QXZ>This setting enables DIDs to have extension overrides for remote agent routed calls through in-groups. Default is 0 for disabled.</QXZ>
|
||||
settings-enhanced_agent_monitoring Enable Enhanced Agent Monitoring <QXZ>For systems using servers with CONFBRIDGE agent sessions only. If enabled, this will allow agent monitoring sessions initiated through the Real-Time Report to allow the manager to switch from monitoring to barging to whispering by pressing a single DTMF key -4,5,6- on their monitoring phone. Default is 0 for disabled.</QXZ>
|
||||
settings-agent_whisper_enabled Enable Agent Whisper Monitoring <QXZ>This setting allows a manager to be able to speak to a logged in agent without the customer being able to hear them. WARNING, this feature is considered experimental and may not function properly in some cases. Older versions of Asterisk have shown to have serious issues at times with this feature and can cause Asterisk to freeze or crash. Default is 0 for disabled.</QXZ>
|
||||
settings-user_hide_realtime_enabled Enable User Hide RealTime <QXZ>This setting allows a User Modify setting to be changed to allow a user to be hidden from all managers in the Real-Time Report. Default is 0 for disabled.</QXZ>
|
||||
settings-manual_auto_next Enable Manual Dial Auto Next <QXZ>This setting allows the campaign setting to be enabled forcing a manual dial after X seconds in a manual or inbound manual dial mode. Default is 0 for disabled.</QXZ>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# non_agent_api.php
|
||||
#
|
||||
# Copyright (C) 2024 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2025 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed as an API(Application Programming Interface) to allow
|
||||
# other programs to interact with all non-agent-screen VICIDIAL functions
|
||||
@@ -220,10 +220,11 @@
|
||||
# 241113-1600 - Added in_groups as input option for update_user function
|
||||
# 241121-1501 - Fix for issue in user_group_status function
|
||||
# 241127-2148 - Fix for custom fields issue #1533
|
||||
# 250105-1001 - Added enhanced_agent_monitoring option compatibility
|
||||
#
|
||||
|
||||
$version = '2.14-197';
|
||||
$build = '241127-2148';
|
||||
$version = '2.14-198';
|
||||
$build = '250105-1001';
|
||||
$php_script='non_agent_api.php';
|
||||
$api_url_log = 0;
|
||||
$camp_lead_order_random=1;
|
||||
@@ -766,7 +767,7 @@ header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,custom_fields_enabled,pass_hash_enabled,agent_whisper_enabled,active_modules,auto_dial_limit,enable_languages,language_method,admin_web_directory,sounds_web_server,allow_web_debug FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,custom_fields_enabled,pass_hash_enabled,agent_whisper_enabled,active_modules,auto_dial_limit,enable_languages,language_method,admin_web_directory,sounds_web_server,allow_web_debug,enhanced_agent_monitoring FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
if ($qm_conf_ct > 0)
|
||||
@@ -785,6 +786,7 @@ if ($qm_conf_ct > 0)
|
||||
$SSadmin_web_directory = $row[8];
|
||||
$SSsounds_web_server = $row[9];
|
||||
$SSallow_web_debug = $row[10];
|
||||
$SSenhanced_agent_monitoring = $row[11];
|
||||
}
|
||||
if ($SSallow_web_debug < 1) {$DB=0;}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
@@ -3424,17 +3426,28 @@ if ($function == 'blind_monitor')
|
||||
$monitor_dialstring = "$D_s_ip[0]$S$D_s_ip[1]$S$D_s_ip[2]$S$D_s_ip[3]$S";
|
||||
|
||||
$monitor_type='LISTEN'; $cid_prefix='BM'; $swap_chan=0;
|
||||
if ( (preg_match('/MONITOR/',$stage)) or (strlen($stage)<1) ) {$stage = $monitor_prefix;}
|
||||
if ( (preg_match('/MONITOR/',$stage)) or (strlen($stage)<1) )
|
||||
{
|
||||
$stage = $monitor_prefix;
|
||||
if ($SSenhanced_agent_monitoring > 0)
|
||||
{$stage = '47378219';}
|
||||
}
|
||||
if (preg_match('/BARGE/',$stage))
|
||||
{
|
||||
if (preg_match('/SWAP/',$stage)) {$swap_chan=1;}
|
||||
$stage = $barge_prefix; $monitor_type='BARGE'; $cid_prefix='BB';
|
||||
if ($SSenhanced_agent_monitoring > 0)
|
||||
{$stage = '47378220';}
|
||||
}
|
||||
if (preg_match('/HIJACK/',$stage)) {$stage = ''; $monitor_type='HIJACK'; $cid_prefix='BB';}
|
||||
if (preg_match('/WHISPER/',$stage))
|
||||
{
|
||||
if ($agent_whisper_enabled == '1')
|
||||
{$stage = '47378218'; $monitor_type='WHISPER'; $cid_prefix='BW';}
|
||||
{
|
||||
$stage = '47378218'; $monitor_type='WHISPER'; $cid_prefix='BW';
|
||||
if ($SSenhanced_agent_monitoring > 0)
|
||||
{$stage = '47378221';}
|
||||
}
|
||||
else
|
||||
{
|
||||
# WHISPER not enabled
|
||||
@@ -3458,11 +3471,13 @@ if ($function == 'blind_monitor')
|
||||
$AGENTstatus = $row[3];
|
||||
}
|
||||
|
||||
$variable = "Variable: __monitorsession=$session_id";
|
||||
|
||||
### insert a new lead in the system with this phone number
|
||||
$stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$monitor_server_ip','','Originate','$BMquery','Channel: Local/$monitor_dialstring$stage$session_id@default','Context: default','Exten: $dialplan_number','Priority: 1','Callerid: \"$BMquery\" <$outbound_cid>','','','','','');";
|
||||
$stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$monitor_server_ip','','Originate','$BMquery','Channel: Local/$monitor_dialstring$stage$session_id@default','Context: default','Exten: $dialplan_number','Priority: 1','Callerid: \"$BMquery\" <$outbound_cid>','$variable','','','','');";
|
||||
if ($swap_chan > 0)
|
||||
{
|
||||
$stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$monitor_server_ip','','Originate','$BMquery','Channel: Local/$dialplan_number@default','Context: default','Exten: $monitor_dialstring$stage$session_id','Priority: 1','Callerid: \"$BMquery\" <$outbound_cid>','','','','','');";
|
||||
$stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$monitor_server_ip','','Originate','$BMquery','Channel: Local/$dialplan_number@default','Context: default','Exten: $monitor_dialstring$stage$session_id','Priority: 1','Callerid: \"$BMquery\" <$outbound_cid>','$variable','','','','');";
|
||||
}
|
||||
if ($DB>0) {echo "DEBUG: blind_monitor query - $stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
|
||||
Reference in New Issue
Block a user