diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-03-10 21:45:03 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-03-10 21:45:18 +0100 |
commit | d3fa306d0a0e58d953957f577e5f8974c5fa05d9 (patch) | |
tree | b35d84c0148e11c4e17b267d4d922ac9da5f5b64 /usr/local/www/wizards | |
parent | 457d9c3275ff2b7ad691a38bdcb72e7177ff159a (diff) | |
download | pfsense-d3fa306d0a0e58d953957f577e5f8974c5fa05d9.zip pfsense-d3fa306d0a0e58d953957f577e5f8974c5fa05d9.tar.gz |
Fixes #4427 Correct traffic shaper wizard to properly save and use Voip provided settings
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc index 8f7fa22..09f0d1c 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc @@ -532,8 +532,8 @@ function step3_stepsubmitphpaction() { if (!$_POST['enable']) return; - if($_POST['address']) { - if(!is_ipaddroralias($_POST['address'])) { + if($_POST['upstream_sip_server']) { + if(!is_ipaddroralias($_POST['upstream_sip_server'])) { /* item is not an ip or alias. error out */ $savemsg=gettext("Address must be a valid IP address or Firewall Alias. Please correct this value to continue."); $stepid--; @@ -603,6 +603,10 @@ function step3_stepsubmitphpaction() { unset($config['ezshaper']['step3']); $config['ezshaper']['step3'] = array(); + if (!empty($_POST['upstream_sip_server'])) + $config['ezshaper']['step3']['address'] = $_POST['upstream_sip_server']; + if ($_POST['enable'] == 'on') + $config['ezshaper']['step3']['enable'] = 'on'; for ($i = 0; $i < $localint; $i++) { $config['ezshaper']['step3']["local{$i}download"] = $_POST["local{$i}download"]; $config['ezshaper']['step3']["local{$i}downloadspeed"] = $_POST["local{$i}downloadspeed"]; |