Added system settings for agent_hidden_sound and added more browser_alert_sounds
Added agent screen visibility logging and Agent Hidden Browser Sounds git-svn-id: svn://192.168.202.10@3390 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# conf_exten_check.php version 2.14
|
||||
#
|
||||
# Copyright (C) 2020 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2021 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed purely to send whether the meetme conference has live channels connected and which they are
|
||||
# This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table
|
||||
@@ -85,10 +85,11 @@
|
||||
# 191013-2105 - Fixes for PHP7
|
||||
# 200825-2343 - Added option for manual-only sip actions
|
||||
# 201111-2140 - Fix for AGENTDIRECT selected in-groups issue #1241
|
||||
# 210317-1935 - Added visibility logging
|
||||
#
|
||||
|
||||
$version = '2.14-59';
|
||||
$build = '201111-2140';
|
||||
$version = '2.14-60';
|
||||
$build = '210317-1935';
|
||||
$php_script = 'conf_exten_check.php';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=51;
|
||||
@@ -146,7 +147,8 @@ if (isset($_GET["campaign"])) {$campaign=$_GET["campaign"];}
|
||||
elseif (isset($_POST["campaign"])) {$campaign=$_POST["campaign"];}
|
||||
if (isset($_GET["phone_number"])) {$phone_number=$_GET["phone_number"];}
|
||||
elseif (isset($_POST["phone_number"])) {$phone_number=$_POST["phone_number"];}
|
||||
|
||||
if (isset($_GET["visibility"])) {$visibility=$_GET["visibility"];}
|
||||
elseif (isset($_POST["visibility"])) {$visibility=$_POST["visibility"];}
|
||||
|
||||
if ($bcrypt == 'OFF')
|
||||
{$bcrypt=0;}
|
||||
@@ -200,6 +202,7 @@ $conf_exten = preg_replace("/[^-_0-9a-zA-Z]/","",$conf_exten);
|
||||
$exten = preg_replace("/\'|\"|\\\\|;/","",$exten);
|
||||
$clicks = preg_replace("/\'|\"|\\\\|;/","",$clicks);
|
||||
$customer_chat_id = preg_replace("/[^0-9a-zA-Z]/","",$customer_chat_id);
|
||||
$visibility = preg_replace("/\'|\"|\\\\|;/","",$visibility);
|
||||
|
||||
# default optional vars if not set
|
||||
if (!isset($format)) {$format="text";}
|
||||
@@ -1124,6 +1127,32 @@ if ($format=='debug')
|
||||
echo "\n</body>\n</html>\n";
|
||||
}
|
||||
|
||||
### log the visibility changes sent from the agent screen
|
||||
if (strlen($visibility) > 1)
|
||||
{
|
||||
$vc=0;
|
||||
$visibility_details = explode('|',$visibility);
|
||||
$visibility_details_ct = count($visibility_details);
|
||||
while($vc < $visibility_details_ct)
|
||||
{
|
||||
$visibility_data = explode(' ',$visibility_details[$vc]);
|
||||
$visibility_type = $visibility_data[0];
|
||||
$visibility_length = $visibility_data[1];
|
||||
$visibility_start_epoch = $visibility_data[2];
|
||||
$visibility_end_epoch = $visibility_data[3];
|
||||
#$visibility_length = ($StarTtime - $visibility_data[2]);
|
||||
$agent_log_id = $visibility_data[4];
|
||||
|
||||
if (strlen($visibility_type) > 1)
|
||||
{
|
||||
$stmtA="INSERT INTO vicidial_agent_visibility_log set db_time=NOW(),event_start_epoch='$visibility_start_epoch',event_end_epoch='$visibility_end_epoch',user='$user',length_in_sec='$visibility_length',visibility='$visibility_type',agent_log_id='$agent_log_id';";
|
||||
$rslt=mysql_to_mysqli($stmtA, $link);
|
||||
}
|
||||
|
||||
$vc++;
|
||||
}
|
||||
}
|
||||
|
||||
if ($SSagent_debug_logging > 0)
|
||||
{
|
||||
vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);
|
||||
|
||||
Reference in New Issue
Block a user