diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-22 14:46:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-22 14:46:54 +0000 |
commit | 3a79fa1e46329d64073ceafbf7685dd0e6c809bc (patch) | |
tree | 2d2f24fe70efa7c668db28aff35aa1f89b004c81 | |
parent | 58826c73988cb3ae597f8083ad67595836a7b59c (diff) | |
download | pfsense-3a79fa1e46329d64073ceafbf7685dd0e6c809bc.zip pfsense-3a79fa1e46329d64073ceafbf7685dd0e6c809bc.tar.gz |
Add Panasonic Hybrid PBX to EZ Shaper Wizard
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.xml | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.xml b/usr/local/www/wizards/traffic_shaper_wizard.xml index 3d97c5c..bc8c231 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.xml +++ b/usr/local/www/wizards/traffic_shaper_wizard.xml @@ -241,7 +241,11 @@ <option> <name>Asterisk</name> <value>Asterisk</value> - </option> + </option> + <option> + <name>PanasonicPBX</name> + <value>Panasonic</value> + </option> </options> </field> <field> @@ -341,13 +345,6 @@ <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"; @@ -434,7 +431,14 @@ $voiplist[] = array('VoicePulse', 'udp', '16384', '16482', 'both'); $voiplist[] = array('VoicePulse', 'udp', '4569', '4569', 'both'); } - + + /* Panasonic Hybrid PBX */ + if( $_POST['provider'] == "Panasonic") { + $voiplist[] = array('Panasonic1', 'udp', '8000-8063', '8000-8063', 'both'); + $voiplist[] = array('Panasonic2', 'udp', '9300-9301', '9300-9301', 'both'); + $voiplist[] = array('Panasonic3', 'udp', '2747', '2747', 'both'); + } + /* Set up/down games as higher weight */ /* loop through voiplist[] */ foreach ($voiplist as $voip) { @@ -762,7 +766,7 @@ <type>checkbox</type> <typehint>Prioritize network gaming traffic</typehint> <description>This will raise the priority of gaming traffic to higher than most traffic.</description> - <enablefields>Counterstrike,DeltaForce,QuakeIII,TigerWoods2004PS2,CallOfDuty,PlanetSide,Halo2,AgesOfEmpires</enablefields> + <enablefields>Counterstrike,DeltaForce,QuakeIII,TigerWoods2004PS2,CallOfDuty,PlanetSide,Halo2</enablefields> <donotdisable>true</donotdisable> <bindstofield>ezshaper->step5->enable</bindstofield> </field> @@ -817,12 +821,6 @@ <bindstofield>ezshaper->step5->halo2xbox</bindstofield> </field> <field> - <name>AgesOfEmpires</name> - <type>checkbox</type> - <typehint>Ages of empires</typehint> - <bindstofield>ezshaper->step5->agesofempires</bindstofield> - </field> - <field> <name>Next</name> <type>submit</type> </field> @@ -929,14 +927,6 @@ $gamesplist[] = array('Halo2-3', 'tcp', '3074', '3074', 'both'); } - if($_POST['agesofempires'] != "") { - /* Ages of empires */ - $gamesplist[] = array('agesofempires-1', 'tcp', '2302-2400', '2302-2400', 'both'); - $gamesplist[] = array('agesofempires-2', 'tcp', '6073', '6073', 'both'); - $gamesplist[] = array('agesofempires-3', 'udp', '2302-2400', '2302-2400', 'both'); - $gamesplist[] = array('agesofempires-4', 'udp', '6073', '6073', 'both'); - } - /* XXX: add some more games before this line!! */ /* Set up/down games as higher weight */ @@ -1461,4 +1451,4 @@ header("Location: /status_queues.php"); </stepsubmitphpaction> </step> -</pfsensewizard> +</pfsensewizard>
\ No newline at end of file |