From 02e9c62e4e432a7ccb9ea31819b330713a36881d Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 18 Apr 2013 14:55:27 +0000 Subject: [PATCH] Changed how server list is generated for Carrier Log Report Added auto-close to in-group/closer/territory selection screen if agent is not allowed to select. git-svn-id: svn://192.168.202.10@1963 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/agc/vicidial.php | 23 +++++++++++++++++++++-- www/vicidial/AST_carrier_log_report.php | 3 ++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 4cd162cf..1a9b4feb 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -399,10 +399,11 @@ # 130328-1017 - Added validation for agent manual dial permission on DIAL links # 130402-2250 - Added user_group variable in scripts, forms and webforms # 130412-1359 - Added SIP message for failed calls +# 130417-1937 - Changed locked agent choose in-group/closer/territories to auto-close # -$version = '2.6-367c'; -$build = '130412-1359'; +$version = '2.6-368c'; +$build = '130417-1937'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=79; $one_mysql_log=0; @@ -3695,6 +3696,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var owner_populate=''; var qc_enabled=''; var inbound_lead_search=0; + var VU_agent_choose_ingroups_skip_count=0; + var agent_select_territories_skip_count=0; var DiaLControl_auto_HTML = "\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"\"Resume\""; @@ -13317,6 +13320,8 @@ function phone_number_format(formatphone) { showDiv('CloserSelectBox'); var CloserSelecting = 1; CloserSelectContent_create(); + if (VU_agent_choose_ingroups_DV == "MGRLOCK") + {VU_agent_choose_ingroups_skip_count=4;} } else { @@ -13336,6 +13341,8 @@ function phone_number_format(formatphone) { showDiv('TerritorySelectBox'); var TerritorySelecting = 1; TerritorySelectContent_create(); + if (agent_select_territories == "MGRLOCK") + {agent_select_territories_skip_count=4;} } else { @@ -13447,6 +13454,18 @@ function phone_number_format(formatphone) { check_for_conf_calls(session_id, '0'); AgentDispoing++; } + if (VU_agent_choose_ingroups_skip_count > 0) + { + VU_agent_choose_ingroups_skip_count--; + if (VU_agent_choose_ingroups_skip_count == 0) + {CloserSelect_submit();} + } + if (agent_select_territories_skip_count > 0) + { + agent_select_territories_skip_count--; + if (agent_select_territories_skip_count == 0) + {TerritorySelect_submit();} + } if (logout_stop_timeouts==1) {WaitingForNextStep=1;} if ( (custchannellive < -30) && (lastcustchannel.length > 3) && (no_empty_session_warnings < 1) ) {CustomerChanneLGone();} if ( (custchannellive < -10) && (lastcustchannel.length > 3) ) {ReChecKCustoMerChaN();} diff --git a/www/vicidial/AST_carrier_log_report.php b/www/vicidial/AST_carrier_log_report.php index e7060353..c06733d1 100644 --- a/www/vicidial/AST_carrier_log_report.php +++ b/www/vicidial/AST_carrier_log_report.php @@ -6,6 +6,7 @@ # CHANGES # 120210-2202 - First build # 130413-2213 - Added SIP codes summary and fields, and report logging +# 130418-1048 - Changed how server list is generated # $startMS = microtime(); @@ -125,7 +126,7 @@ while($i < $server_ip_ct) $i++; } -$server_stmt="select distinct s.server_ip, s.server_description from servers s, vicidial_carrier_log vcl where s.server_ip=vcl.server_ip order by server_ip asc"; +$server_stmt="select server_ip,server_description from servers where active_asterisk_server='Y' order by server_ip asc"; $server_rslt=mysql_query($server_stmt, $link); $servers_to_print=mysql_num_rows($server_rslt); $i=0;