For agent screen, due to Asterisk stability issues, Disabled agent volume controls for Asterisk 13 servers, added options.php override setting(ast13_volume_override)

git-svn-id: svn://192.168.202.10@3247 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2020-05-15 17:57:07 +00:00
parent 66590f1cd6
commit 9886d39d01
2 changed files with 16 additions and 3 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
<?php
# options.php - manually defined options for vicidial.php
#
# Copyright (C) 2019 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2020 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# rename this file to options.php for the settings here to go into effect
#
@@ -17,6 +17,7 @@
# 180425-2035 - Added #INSERT_first_onload variable
# 190330-0817 - Added logged_in_refresh_link
# 191107-0925 - Added $webphone_call_seconds
# 200515-1339 - Added ast13_volume_override option
#
$conf_silent_prefix = '5'; # vicidial_conferences prefix to enter silently and muted for recording
@@ -37,6 +38,7 @@ $local_consult_xfers = '1'; # set to 1 to send consultative transfers from origi
$clientDST = '1'; # set to 1 to check for DST on server for agent time
$no_delete_sessions = '1'; # set to 1 to not delete sessions at logout
$volumecontrol_active = '1'; # set to 1 to allow agents to alter volume of channels
$ast13_volume_override = '0'; # set to 1 to allow agent to use volume controls even on Asterisk 13 servers
$PreseT_DiaL_LinKs = '0'; # set to 1 to show a DIAL link for Dial Presets
$LogiNAJAX = '1'; # set to 1 to do lookups on campaigns for login
$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
+13 -2
View File
@@ -638,10 +638,11 @@
# 200408-0952 - Small fix for Issue #1188, allow dial override
# 200425-0948 - Added 2nd option for agentcall_manual to disable FAST DIAL
# 200512-1005 - Added hide_relogin_fields URL variable feature
# 200515-1352 - Disable volume controls for Asterisk 13 servers, added options.php override setting(ast13_volume_override)
#
$version = '2.14-607c';
$build = '200512-1005';
$version = '2.14-608c';
$build = '200515-1352';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=91;
$one_mysql_log=0;
@@ -855,6 +856,7 @@ $local_consult_xfers = '1'; # set to 1 to send consultative transfers from origi
$clientDST = '1'; # set to 1 to check for DST on server for agent time
$no_delete_sessions = '1'; # set to 1 to not delete sessions at logout
$volumecontrol_active = '1'; # set to 1 to allow agents to alter volume of channels
$ast13_volume_override = '0'; # set to 1 to allow agent to use volume controls even on Asterisk 13 servers
$PreseT_DiaL_LinKs = '0'; # set to 1 to show a DIAL link for Dial Presets
$LogiNAJAX = '1'; # set to 1 to do lookups on campaigns for login
$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
@@ -3230,6 +3232,15 @@ else
$external_web_socket_url = $row[2];
if ( ($use_external_server_ip=='Y') and (strlen($external_web_socket_url) > 5) )
{$web_socket_url = $external_web_socket_url;}
$major_version = explode('.',$asterisk_version);
if ($major_version[0] >= 13)
{
if ( ($volumecontrol_active > 0) and ($ast13_volume_override < 1) )
{
echo "<!-- ASTERISK 13 VOLUME CONTROLS DISABLED: |$asterisk_version($major_version[0])|$volumecontrol_active|$ast13_volume_override| -->\n";
$volumecontrol_active=0;
}
}
if ($protocol == 'EXTERNAL')
{