Fix adding of VoIP rules from traffic shaper wizard where IP/alias is not

specified.
This commit is contained in:
Chris Buechler 2015-07-14 17:54:10 -05:00
parent 8795064c3e
commit e65ebe325e

View File

@ -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"];