Change in CIDname prefix in multiple scripts to differentiate from other processes

git-svn-id: svn://192.168.202.10@3658 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2022-12-02 21:53:27 +00:00
parent fb53d45dd2
commit c5fe9e37be
5 changed files with 18 additions and 9 deletions
+3 -2
View File
@@ -27,7 +27,7 @@
# dial_prefix => 444
# user_code => backoffice_agent
#
# Copyright (C) 2021 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2022 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGELOG
# 80112-0330 - First Build
@@ -35,6 +35,7 @@
# 140426-1950 - Added pause_type
# 200412-1037 - Updated to match web emergency logout, with QM logging
# 210811-1630 - Added option to logout agents only within campaigns/users with a specific dial_prefix/user_code
# 221202-1639 - Change in CIDname prefix to differentiate from other processes
#
# constants
@@ -480,7 +481,7 @@ while($rec_count > $i)
$local_AMP = '@';
$ext_context = 'default';
$kick_local_channel = "$local_DEF$conf_exten[$i]$local_AMP$ext_context";
$queryCID = "ULGH3457$now_date_epoch";
$queryCID = "ULAL3458$now_date_epoch";
$stmtC="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip[$i]','','Originate','$queryCID','Channel: $kick_local_channel','Context: $ext_context','Exten: 8300','Priority: 1','Callerid: $queryCID','','','','','');";
$affected_rowsC = $dbhA->do($stmtC);
+6 -1
View File
@@ -1,4 +1,4 @@
CALLER ID NAME CODES DOC Started: 2013-07-15 Updated: 2019-03-10
CALLER ID NAME CODES DOC Started: 2013-07-15 Updated: 2022-12-02
This document is meant for reference only, and it does not contain all CID name codes possible, but more will be added over time.
@@ -25,6 +25,11 @@ HLvdcW - Hangup of customer call from agent screen (HLvdcW1475524272tluc)
CH123456 - Hangup of all non-agent channels in meetme session(CH1234614755246080)
ULGC - Hangup of lone channel in left 3way session (ULGC0010420221616133)
ULGH - Clearing of left 3way session after server rec limit (ULGH0010420221618178)
ULAL - Clearing of agent session by AST_agent_logout.pl script
ULFA - Clearing of agent session by force_agent_logout.php admin page
ULUS - Clearing of agent session by user_status.php admin page
ULVD - Hanging up agent phone in userLOGout agent screen function
ULVC - Clearing of agent session in userLOGout agent screen function
BM - Real-time screen blind monitor (BM149425456200006666)
BB - Real-time screen blind barge (BB149425456200006666)
BW - Real-time screen blind whisper (BW149425456200006666)
+5 -4
View File
@@ -528,10 +528,11 @@
# 220625-1630 - Fix for Manual Dial NONE_WITH_ options dialing proper number
# 220831-1654 - Added User Group script override option
# 221116-1052 - Fix for long in-group dialstring extensions
# 221202-1645 - Change in CIDname prefix for clearing session command to differentiate from other processes
#
$version = '2.14-421';
$build = '221116-1052';
$version = '2.14-422';
$build = '221202-1645';
$php_script = 'vdc_db_query.php';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=902;
@@ -16536,7 +16537,7 @@ if ($ACTION == 'userLOGout')
$row=mysqli_fetch_row($rslt);
$agent_channel = "$row[0]";
if ($format=='debug') {echo "\n<!-- $row[0] -->";}
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Hangup','ULGH3459$StarTtime','Channel: $agent_channel','','','','','','','','','');";
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Hangup','ULVD3452$StarTtime','Channel: $agent_channel','','','','','','','','','');";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_to_mysqli($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00134',$user,$server_ip,$session_name,$one_mysql_log);}
@@ -16547,7 +16548,7 @@ if ($ACTION == 'userLOGout')
$local_DEF = 'Local/5555';
$local_AMP = '@';
$kick_local_channel = "$local_DEF$conf_exten$local_AMP$ext_context";
$queryCID = "ULGH3458$StarTtime";
$queryCID = "ULVC3453$StarTtime";
$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','','','','$channel','$exten');";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
+2 -1
View File
@@ -12,6 +12,7 @@
# 201025-2320 - First build
# 220124-2127 - Changed to allow user_level 7 users with the proper permissions to use this page
# 220223-2155 - Added allow_web_debug system setting
# 221202-1642 - Change in CIDname prefix to differentiate from other processes
#
$startMS = microtime();
@@ -512,7 +513,7 @@ else
$local_AMP = '@';
$ext_context = 'default';
$kick_local_channel = "$local_DEF$VLA_conf_exten$local_AMP$ext_context";
$queryCID = "ULGH3457$StarTtimE";
$queryCID = "ULFA3459$StarTtimE";
$stmtC="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$VLA_server_ip','','Originate','$queryCID','Channel: $kick_local_channel','Context: $ext_context','Exten: 8300','Priority: 1','Callerid: $queryCID','','','','$channel','$exten');";
if ($DB) {echo "<BR>$stmtC\n";}
+2 -1
View File
@@ -42,6 +42,7 @@
# 170409-1555 - Added IP List validation code
# 170912-1704 - Removed non-functional change-campaign feature
# 220221-0953 - Added allow_web_debug system setting
# 221202-1644 - Change in CIDname prefix to differentiate from other processes
#
$startMS = microtime();
@@ -575,7 +576,7 @@ if ($stage == "log_agent_out")
$local_AMP = '@';
$ext_context = 'default';
$kick_local_channel = "$local_DEF$VLA_conf_exten$local_AMP$ext_context";
$queryCID = "ULGH3457$StarTtimE";
$queryCID = "ULUS3451$StarTtimE";
$stmtC="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$VLA_server_ip','','Originate','$queryCID','Channel: $kick_local_channel','Context: $ext_context','Exten: 8300','Priority: 1','Callerid: $queryCID','','','','$channel','$exten');";
if ($DB) {echo "<BR>$stmtC\n";}