diff options
author | jim-p <jimp@pfsense.org> | 2013-02-27 15:35:42 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-02-27 15:37:39 -0500 |
commit | da14f0cf0bbacc83541369c8b1e7864449978d45 (patch) | |
tree | b0fe2675694ee381eeb1f5f3e2fd189fd6871397 /usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc | |
parent | 5b13c47cb2391da39472aeed5f6269a913ae831a (diff) | |
download | pfsense-da14f0cf0bbacc83541369c8b1e7864449978d45.zip pfsense-da14f0cf0bbacc83541369c8b1e7864449978d45.tar.gz |
Fix wording for VoIP address option in the shaper. Add rule going the other direction to catch connections initiated both ways.
Diffstat (limited to 'usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc index bde56bb..95a4d94 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc @@ -1221,8 +1221,8 @@ function apply_all_choosen_items() { /* create VOIP rules */ $rule = array(); $rule['type'] = "match"; - //$rule['interface'] = "wan"; - $rule['descr'] = gettext("VOIP Adapter"); + //$rule['interface'] = "wan"; + $rule['descr'] = gettext("Connections From Upstream SIP Server"); $rule['protocol'] = "udp"; $rule['defaultqueue'] = "qVoIP"; $rule['source']['address'] = $config['ezshaper']['step3']['address']; @@ -1232,6 +1232,19 @@ function apply_all_choosen_items() { $rule['enabled'] = "on"; $config['filter']['rule'][] = $rule; + $rule = array(); + $rule['type'] = "match"; + //$rule['interface'] = "wan"; + $rule['descr'] = gettext("Connections To Upstream SIP Server"); + $rule['protocol'] = "udp"; + $rule['defaultqueue'] = "qVoIP"; + $rule['source']['any'] = TRUE; + $rule['destination']['address'] = $config['ezshaper']['step3']['address']; + $rule['floating'] = "yes"; + $rule['wizard'] = "yes"; + $rule['enabled'] = "on"; + $config['filter']['rule'][] = $rule; + } elseif( $config['ezshaper']['step3']['provider'] == "Generic" ) { /* create VOIP rules */ $rule = array(); |