diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 849645d2..e38e492e 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -611,10 +611,11 @@ # 190310-2017 - Added mute_recordings system/campaign/user option # 190330-0815 - Added logged_in_refresh_link option # 190406-1615 - Added agent next_dial_my_callbacks override +# 190529-2144 - Fix for shift enforcement dispo-call-url issue # -$version = '2.14-580c'; -$build = '190406-1615'; +$version = '2.14-581c'; +$build = '190529-2144'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=87; $one_mysql_log=0; @@ -4823,6 +4824,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var manual_entry_dial=0; var mute_recordings=''; var active_rec_channel=''; + var trigger_shift_logout=0; var DiaLControl_auto_HTML = "\" border=\"0\" alt=\"You are paused\" />"; var DiaLControl_auto_HTML_ready = "\" border=\"0\" alt=\"You are active\" />"; var DiaLControl_auto_HTML_OFF = "\" border=\"0\" alt=\"pause button disabled\" />"; @@ -14152,7 +14154,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) else { if (shift_logout_flag > 0) - {LogouT('SHIFT','');} + { + trigger_shift_logout=10; + showDiv('LogouTBox'); + } else {LogouT('API','');} } @@ -18567,6 +18572,17 @@ function phone_number_format(formatphone) { } if (left_3way_timeout > 0) {left_3way_timeout = (left_3way_timeout - 1);} + + if (trigger_shift_logout > 0) + { + if (trigger_shift_logout > 1) + {trigger_shift_logout =(trigger_shift_logout - 1);} + else + { + LogouT('SHIFT',''); + trigger_shift_logout=0; + } + } } setTimeout("all_refresh()", refresh_interval); }