From 5b7589ffc85ae3d47424a91d6bec06198144019f Mon Sep 17 00:00:00 2001 From: mattf Date: Sat, 15 Aug 2026 20:46:26 +0000 Subject: [PATCH] Updated VCA files Updated documentation, small changes for a couple scripts git-svn-id: svn://192.168.202.10@4012 3d104415-ff17-0410-8863-d5cf3c621b8a --- bin/AST_email_web_report.pl | 2 +- docs/CALLER_ID_NAME_CODES.txt | 3 +- experimental/VCA/AST_VCA_log_report.php | 26 +++++++++++----- experimental/VCA/VCA_db_schema.sql | 30 +++++++------------ extras/MySQL_AST_CREATE_tables.sql | 5 ++-- extras/upgrade_2.14.sql | 6 +++- sounds/6s-silence.wav | Bin 0 -> 97114 bytes www/agc/images/vdc_LB_quickxfer_BIGGREEN.gif | Bin 0 -> 2160 bytes 8 files changed, 40 insertions(+), 32 deletions(-) create mode 100644 sounds/6s-silence.wav create mode 100644 www/agc/images/vdc_LB_quickxfer_BIGGREEN.gif diff --git a/bin/AST_email_web_report.pl b/bin/AST_email_web_report.pl index a412489a..5d969840 100644 --- a/bin/AST_email_web_report.pl +++ b/bin/AST_email_web_report.pl @@ -592,7 +592,7 @@ if (length($report_id) > 1) $sthA->finish(); $file_extension = $html; - if ($location =~ /call_report_export|lead_report_export|call_report_export_carrier|list_download/) + if ($location =~ /call_report_export|lead_report_export|call_report_export_carrier|list_download|callerID_log_report/) {$file_extension = '.txt'} else { diff --git a/docs/CALLER_ID_NAME_CODES.txt b/docs/CALLER_ID_NAME_CODES.txt index e192e6d7..ff8f9bb4 100644 --- a/docs/CALLER_ID_NAME_CODES.txt +++ b/docs/CALLER_ID_NAME_CODES.txt @@ -1,4 +1,4 @@ -CALLER ID NAME CODES DOC Started: 2013-07-15 Updated: 2025-09-08 +CALLER ID NAME CODES DOC Started: 2013-07-15 Updated: 2026-08-15 This document is meant for reference only, and it does not contain all CID name codes possible, but more will be added over time. @@ -24,6 +24,7 @@ XLvdc - Agent Local Closer or ReQueue Call (XLvdcW13739431946666) [epoch + user. XBvdc - Agent blind transfer (XBvdcW14528875091001100110011001) [epoch + user...] AGMON - Remote Agent Monitor (AGMON715224918000001) HLvdcW - Hangup of customer call from agent screen (HLvdcW1475524272tluc) +HXagcW - Hangup of 3-way call from agent screen (HXvdcW17867277801849) CH123456 - Hangup of all non-agent channels in meetme session(CH12345614755246080) SH1234567 - Stop recording on customer channel(SH12345671475524608) ULGC - Hangup of lone channel in left 3way session (ULGC0010420221616133) diff --git a/experimental/VCA/AST_VCA_log_report.php b/experimental/VCA/AST_VCA_log_report.php index 101130a6..9aa55302 100644 --- a/experimental/VCA/AST_VCA_log_report.php +++ b/experimental/VCA/AST_VCA_log_report.php @@ -1,10 +1,11 @@ LICENSE: AGPLv2 +# Copyright (C) 2026 Joe Johnson, Matt Florell LICENSE: AGPLv2 # # CHANGES -# 190329-1852 - First build, based on AST_carrier_log_report.php +# 250329-1852 - First build, based on AST_carrier_log_report.php +# 260815-1602 - Added last_X_mins option # $startMS = microtime(); @@ -35,6 +36,9 @@ if (isset($_GET["amd_status"])) {$amd_status=$_GET["amd_status"];} elseif (isset($_POST["amd_status"])) {$amd_status=$_POST["amd_status"];} if (isset($_GET["amd_cause"])) {$amd_cause=$_GET["amd_cause"];} elseif (isset($_POST["amd_cause"])) {$amd_cause=$_POST["amd_cause"];} +if (isset($_GET["last_X_mins"])) {$last_X_mins=$_GET["last_X_mins"];} + elseif (isset($_POST["last_X_mins"])) {$last_X_mins=$_POST["last_X_mins"];} + else {$last_X_mins=0;} if (isset($_GET["file_download"])) {$file_download=$_GET["file_download"];} elseif (isset($_POST["file_download"])) {$file_download=$_POST["file_download"];} else {$file_download=0;} @@ -56,16 +60,24 @@ if (isset($_GET["rpt_output_type"])) {$rpt_output_type=$_GET["rpt_output_type" $START_TIME=date("U"); $NOW_DATE = date("Y-m-d"); + +$last_X_mins = preg_replace('/[^0-9]/', '', $last_X_mins); + + if (!is_array($server_ip)) {$server_ip = array();} if (!is_array($amd_status)) {$amd_status = array();} if (!is_array($agent_status)) {$agent_status = array();} if (!is_array($amd_cause)) {$amd_cause = array();} -if (!isset($query_date)) {$query_date = $NOW_DATE;} +if (!isset($query_date) || $last_X_mins>0) {$query_date = $NOW_DATE;} if (strlen($query_date_D) < 6) {$query_date_D = "00:00:00";} if (strlen($query_date_T) < 6) {$query_date_T = "23:59:59";} if (!isset($lower_limit)) {$lower_limit=1;} if (!isset($upper_limit)) {$upper_limit=1000;} - +if ($last_X_mins>0) + { + $query_date_T=date("H:i:s"); + $query_date_D=date("H:i:s", time()-(60*$last_X_mins)); + } ############################################# @@ -270,9 +282,7 @@ if ( (strlen($slave_db_server)>5) and (preg_match("/$report_name/",$reports_use_ $MAIN.="\n"; } -# $master_amd_status_array=array("HANGUP", "HUMAN", "MACHINE", "NOTSURE"); -# $master_amd_cause_array=array("HUMAN", "INITIALSILENCE", "LONGGREETING", "MAXWORDLENGTH", "MAXWORDS", "NOAUDIODATA", "TOOLONG"); -$master_amd_status_array=array("FAS", "FAX", "HUMAN", "INTERCEPT", "MACHINE", "NOTSURE"); +$master_amd_status_array=array("FAS", "FAX", "HUMAN", "INTERCEPT", "MACHINE", "NOTSURE","CALLSCREEN"); $master_amd_cause_array=array("ANS_SIG", "CNG_SIG", "CNG_ANS_SIG", "CONERROR", "HUMAN", "INITIALSILENCE", "LOWCONFIDENCE", "LOWSCORE", "MAXWORDS", "NOTHUMAN", "PATTERN", "RINGING", "SITTONES", "SOUNDTOOSHORT", "SIGNATURE","NOAUDIODATA"); $amd_statuses_to_print=count($master_amd_status_array); @@ -526,6 +536,8 @@ $MAIN.="

"; +$MAIN.="

or last minutes"; + $MAIN.=""._QXZ("Server IP").":
\n"; $MAIN.="