diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-21 15:26:15 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-21 15:26:15 +0000 |
commit | 414203d3458a067208090a36ea0c963f233dfc05 (patch) | |
tree | 2cb98a3f7e8b964bf13c68b2ea91532f30dfb92e /usr/local/www | |
parent | 13f476c7e63785f86d2f082ab73f9c6f292acec4 (diff) | |
download | pfsense-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')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.xml | 7 |
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'] < $_POST['bandwidth']) + $_POST['bandwidth'] = $config['ezshaper']['step2']['upload']; + if($config['ezshaper']['step2']['download'] < $_POST['bandwidth']) + $_POST['bandwidth'] = $config['ezshaper']['step2']['download']; + /* create qVOIPUp */ $queue = array(); $queue['name'] = "qVOIPUp"; |