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:55:05 -0500 |
commit | e65ebe325ecb660d4641446e7122fb5133fb78dc (patch) | |
tree | e9d1543a63635ea1bad4792de2a6128d51680b2d /usr/local | |
parent | 8795064c3e80ddf4b179d07e83e3f82b759230db (diff) | |
download | pfsense-e65ebe325ecb660d4641446e7122fb5133fb78dc.zip pfsense-e65ebe325ecb660d4641446e7122fb5133fb78dc.tar.gz |
Fix adding of VoIP rules from traffic shaper wizard where IP/alias is not
specified.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc | 6 |
1 files changed, 6 insertions, 0 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 5bb3ca5..3f68869 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"]; |