diff --git a/www/vicidial/AST_timeonVDADall.php b/www/vicidial/AST_timeonVDADall.php index 81e1ff7b..84714711 100644 --- a/www/vicidial/AST_timeonVDADall.php +++ b/www/vicidial/AST_timeonVDADall.php @@ -129,10 +129,11 @@ # 220221-1535 - Added allow_web_debug system setting # 230308-0215 - Added option to show customer phone code # 230421-0107 - Added AGENTlatency display +# 230421-1636 - Added RS_UGlatencyRESTRICT options.php setting # -$version = '2.14-114'; -$build = '230421-0107'; +$version = '2.14-115'; +$build = '230421-1636'; $php_script='AST_timeonVDADall.php'; require("dbconnect_mysqli.php"); @@ -620,6 +621,20 @@ if ( (!preg_match('/\-\-ALL\-\-/i',$LOGadmin_viewable_groups)) and (strlen($LOGa else {$admin_viewable_groupsALL=1;} +$RS_UGlatencyALLOWED=0; +if (strlen($RS_UGlatencyRESTRICT) > 0) + { + $latencyUGary = preg_split('/\|/',$RS_UGlatencyRESTRICT); + + foreach( $latencyUGary as $lineUGR ) + { + if ($lineUGR == $LOGuser_group) + {$RS_UGlatencyALLOWED++;} + } + } +else + {$RS_UGlatencyALLOWED=1;} + # and (preg_match("/MONITOR|BARGE|HIJACK|WHISPER/",$monitor_active) ) ) if ( (!isset($monitor_phone)) or (strlen($monitor_phone)<1) ) { @@ -1078,24 +1093,27 @@ $select_list .= "