diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index 0e8ba78f..e2314aff 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/UPGRADE @@ -59,6 +59,8 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom file(8309 and 8310). Also, phone dial-out contexts are definable now allowing you to lock out agent phone in a call center from dialing out. +14. Added option to login as an agent with no phone. Must create a phones entry + called nophone with dialplan number of 8300. diff --git a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql index d3768c22..fd218e3c 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql @@ -70,7 +70,8 @@ email VARCHAR(100), template_id VARCHAR(15) NOT NULL, conf_override TEXT, phone_context VARCHAR(20) default 'default', -index (server_ip) +index (server_ip), +unique index extenserver (extension, server_ip) ); CREATE TABLE servers ( diff --git a/agc_2-X/trunk/extras/upgrade_2.2.0.sql b/agc_2-X/trunk/extras/upgrade_2.2.0.sql index c1b38019..996e0e11 100644 --- a/agc_2-X/trunk/extras/upgrade_2.2.0.sql +++ b/agc_2-X/trunk/extras/upgrade_2.2.0.sql @@ -122,3 +122,7 @@ ALTER TABLE servers ADD vicidial_recording_limit MEDIUMINT(8) default '60'; ALTER TABLE phones ADD phone_context VARCHAR(20) default 'default'; UPDATE system_settings SET db_schema_version='1145'; + +CREATE UNIQUE INDEX extenserver ON phones (extension, server_ip); + +UPDATE system_settings SET db_schema_version='1146'; diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index c0b0a5cd..be181765 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -230,10 +230,11 @@ # 90511-1018 - Added restriction not allowing dialing into agent sessions from manual dial # 90519-0635 - Fixed manual dial status and logging bug # 90525-1012 - Fixed transfer issue of auto-received call after manual dial call +# 90529-0741 - Added nophone agent phone login that will not show any empty session alerts # -$version = '2.2.0-208'; -$build = '90525-1012'; +$version = '2.2.0-209'; +$build = '90529-0741'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=60; $one_mysql_log=0; @@ -1517,6 +1518,11 @@ else $outbound_cid=$row[65]; $enable_sipsak_messages=$row[66]; + $no_empty_session_warnings=0; + if ($phone_login == 'nophone') + { + $no_empty_session_warnings=1; + } if ($PhoneSComPIP == '1') { if (strlen($computer_ip) < 4) @@ -2390,9 +2396,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var VtigeRLogiNScripT = ''; var VtigeRurl = ''; var VtigeREnableD = ''; - var alert_enabled = '' + var alert_enabled = ''; var shift_logout_flag = 0; var vtiger_callback_id = 0; + var no_empty_session_warnings = ''; var DiaLControl_auto_HTML = "\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"\"Resume\""; @@ -7446,9 +7453,9 @@ else check_for_conf_calls(session_id, '0'); } if (logout_stop_timeouts==1) {WaitingForNextStep=1;} - if ( (custchannellive < -30) && (lastcustchannel.length > 3) ) {CustomerChanneLGone();} + if ( (custchannellive < -30) && (lastcustchannel.length > 3) && (no_empty_session_warnings < 1) ) {CustomerChanneLGone();} if ( (custchannellive < -10) && (lastcustchannel.length > 3) ) {ReChecKCustoMerChaN();} - if ( (nochannelinsession > 16) && (check_n > 15) ) {NoneInSession();} + if ( (nochannelinsession > 16) && (check_n > 15) && (no_empty_session_warnings < 1) ) {NoneInSession();} if (WaitingForNextStep==0) { // check for live channels in conference room and get current datetime