Netgate m1n1wall

Author Topic: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006  (Read 2735 times)

0 Members and 1 Guest are viewing this topic.

Offline datafirm

  • Jr. Member
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« on: March 17, 2006, 07:04:02 pm »
Trying to get our VoIP shaping dialed in right now and I noticed a few anomalies.  I have VoIP adapter set to a static IP address so the VoIPUp and VoIPDown queues are directly tied to that. 

Making calls outboud the VoIP queue appears to be working when one checks the output of pfctl -vsq.  But inbound calls get mapped to the qwandef queue and not hte VoIPDown.  Any ideas of what needs to get tweaked to fix this?

I'll do some more playing around on my side.

TIA

Offline Leoandru

  • Full Member
  • ***
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« Reply #1 on: March 17, 2006, 07:39:50 pm »
OK, check again! You wont see traffic flow for inbound lan connections appear in qwandef, thats an outbound queue on the wan side. use status -> queues or since you seem to like shell pftop -s1 -v qeueu will give you a curses-based view of the queues. -s1 will cause it to update every second.
« Last Edit: March 17, 2006, 09:03:53 pm by Leoandru »

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
  • Karma: +3/-0
    • View Profile
    • pfSense
Re: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« Reply #2 on: March 17, 2006, 07:54:34 pm »
Also, try pressing 0 in pftop to switch to a alternate altq view.

0-9 are different views in pftop.

Also, if this is a full installation then run cvs_sync.sh releng_1 and rerun the traffic shaping wizard to ensure you are on the latest code.
« Last Edit: March 17, 2006, 08:00:49 pm by sullrich »

Offline bruor

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« Reply #3 on: March 18, 2006, 08:31:46 pm »
i am using release beta2 and have been trying to find the release snapshots to try out the traffic shaping since i am still having the same issues with bittorrent traffic using the voipUP queue.
the pfsense.com/~sullrich/RELENG.../   folders do not show up for me,  is there a different place these are stored?

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
  • Karma: +3/-0
    • View Profile
    • pfSense
Re: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« Reply #4 on: March 18, 2006, 09:09:46 pm »
If you have a full installation simply run cvs_sync.sh releng_1 from a shell prompt.


Offline datafirm

  • Jr. Member
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« Reply #5 on: March 20, 2006, 12:57:28 pm »
OK, check again! You wont see traffic flow for inbound lan connections appear in qwandef, thats an outbound queue on the wan side. use status -> queues or since you seem to like shell pftop -s1 -v qeueu will give you a curses-based view of the queues. -s1 will cause it to update every second.

Thanks for the pftop tricks ;)

I am on RELENG_1_SNAPSHOT_03-19-2006 and have re-run the traffic shaper.  When incoming VoIP traffic comes in the only two queues that seem to have traffic are qwandef and qlandef.  qVOIPDown never seem to get hit. 

All traffic needs to run through our Asterisk box so altq should see traffic hitting  that address and delegate accordingly.

Any ideas or help is appreciated.


BTW your team should add UDP 4569 IAX2 to the VoIP ruleset when one does not implicitly set the ip address.

Thanks

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
  • Karma: +3/-0
    • View Profile
    • pfSense
Re: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« Reply #6 on: March 20, 2006, 02:42:00 pm »
Then the VOIP traffic is not being tagged correctly.  Double check the inputted IP during the wizard.

Offline datafirm

  • Jr. Member
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« Reply #7 on: March 20, 2006, 03:37:44 pm »
Then the VOIP traffic is not being tagged correctly.  Double check the inputted IP during the wizard.

I think the issue is that we are using IAX2 to connect to our providers.  IAX uses persistent connections when you register with them.  Does altq monitor the already established connections when using these queues?

Thanks

Offline hoba

  • Administrator
  • Hero Member
  • *****
  • Posts: 5837
  • Karma: +3/-0
  • What was the problem to this solution again?
    • View Profile
    • pfSense
Re: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« Reply #8 on: March 20, 2006, 03:56:25 pm »
you need to reset states (the wizard says that at the final step btw). traffic is assigned to a queue on initialization of the connection.

Offline datafirm

  • Jr. Member
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« Reply #9 on: March 20, 2006, 04:16:03 pm »
you need to reset states (the wizard says that at the final step btw). traffic is assigned to a queue on initialization of the connection.

Thanks!  Sorry I missed that.

Now I have all voip traffic going through voipup, still does not route to voipdown which is traffic coming from the asterisk box to the outside world.  Perhaps that is because the IAX2 connection.

BTW I wanted to mark your response as problem solved, but then I could no longer reply to this thread!

Offline hoba

  • Administrator
  • Hero Member
  • *****
  • Posts: 5837
  • Karma: +3/-0
  • What was the problem to this solution again?
    • View Profile
    • pfSense
Re: VoIP Shaping with RELENG_1_SNAPSHOT_03-17-2006
« Reply #10 on: March 20, 2006, 04:40:11 pm »
ok, fixed  ;D