diff --git a/www/agc/options-example.php b/www/agc/options-example.php index a3609915..4c9621ef 100644 --- a/www/agc/options-example.php +++ b/www/agc/options-example.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2020 Matt Florell 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" diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index fc152381..acb81b22 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -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 "\n"; + $volumecontrol_active=0; + } + } if ($protocol == 'EXTERNAL') {