diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-07-14 17:54:10 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-07-14 17:54:10 -0500 |
commit | 57945fccf315ec03600839640786f0de5da8ba56 (patch) | |
tree | 6b8a4a1735c0f5708ea3696a8fee5cb25415ca8c /usr/local/www/wizards | |
parent | 1cc4c9e375b1c41a888dfca54887307815eaad38 (diff) | |
download | pfsense-57945fccf315ec03600839640786f0de5da8ba56.zip pfsense-57945fccf315ec03600839640786f0de5da8ba56.tar.gz |
Fix adding of VoIP rules from traffic shaper wizard where IP/alias is not
specified.
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc | 8 |
1 files changed, 7 insertions, 1 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 b20334d..8c7a3fc 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc @@ -607,6 +607,12 @@ function step3_stepsubmitphpaction() { $config['ezshaper']['step3']['address'] = $_POST['upstream_sip_server']; if ($_POST['enable'] == 'on') $config['ezshaper']['step3']['enable'] = 'on'; + if (!empty($_POST['provider'])) { + $VoIPproviders = array("Generic", "VoicePulse", "Asterisk", "Panasonic"); + if (in_array($_POST['provider'], $VoIPproviders)) { + $config['ezshaper']['step3']['provider'] = $_POST['provider']; + } + } 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"]; @@ -1732,4 +1738,4 @@ function wizard_get_bandwidthtype_scale($type = "b") { return intval($factor); } -?> +?>
\ No newline at end of file |