summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-21 15:26:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-21 15:26:15 +0000
commit414203d3458a067208090a36ea0c963f233dfc05 (patch)
tree2cb98a3f7e8b964bf13c68b2ea91532f30dfb92e /usr/local/www/wizards
parent13f476c7e63785f86d2f082ab73f9c6f292acec4 (diff)
downloadpfsense-414203d3458a067208090a36ea0c963f233dfc05.zip
pfsense-414203d3458a067208090a36ea0c963f233dfc05.tar.gz
If user attempts to set download or upload voip speed > than wan or lan speed, set the voip speed to the wan or lan setting.
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.xml b/usr/local/www/wizards/traffic_shaper_wizard.xml
index 09f57cf..3d97c5c 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard.xml
+++ b/usr/local/www/wizards/traffic_shaper_wizard.xml
@@ -341,6 +341,13 @@
<stepsubmitphpaction>
if ( $_POST['enable'] ) {
+
+ /* check to see if user is setting voip speed higher than wan */
+ if($config['ezshaper']['step2']['upload'] &lt; $_POST['bandwidth'])
+ $_POST['bandwidth'] = $config['ezshaper']['step2']['upload'];
+ if($config['ezshaper']['step2']['download'] &lt; $_POST['bandwidth'])
+ $_POST['bandwidth'] = $config['ezshaper']['step2']['download'];
+
/* create qVOIPUp */
$queue = array();
$queue['name'] = "qVOIPUp";
OpenPOWER on IntegriCloud