Piaf and PFsense traffic shaper problem

freaq76

New Member
Joined
Oct 27, 2008
Messages
11
Reaction score
0
Hi!

I'm using Piaf 1.4 and PFsense 1.2.3 with traffic shaper. I went with the wizard but I have a problem.

When I make a call or receive a call, voip traffic goes in qVOIPDown but not in qVOIPUp. It goes to qwanacks. I know that it used to work in the proper queues but I changed/upgraded the pfsense box and redone my Piaf lately also on a new box. I don't remember if I did a change somewhere before when it worked.

The result is choppy sound when using the internet.

I found a similar post here but don't understand the cause and solution exactly:
http://pbxinaflash.com/forum/showpost.php?p=37846&postcount=7

If somebody can help me, thx!

I might post this in the pfsense forum if I have to...
 
By default, asterisk (at least as set up in piaf) sets the QoS bits for SIP and RTP packets to lower delay settings. These fool the pfsense traffic shaper into putting them in the qwanacks queue. What you want to do is set them to zero in sip_nat_custom.conf or if you install the SIP settings module, set them there like this:

sip_general_additional.conf:tos_sip=0
sip_general_additional.conf:tos_audio=0

NOTE: do NOT edit the above file, if you put those variables in via the SIP settings module, they will show up in that file automatically. Then, put your piaf box as a dedicated voip IP in the shaper (if you did not already do so.)
 
I understand better... Thank you for the quick reply!

After I applied the settings, it does'nt seem to solve my problem... I rebooted PIAF and Pfsense to make sure.

But does it still apply if my connection with my provider is iax?
 
I wish you had mentioned IAX :( Why would you think a settings files called sip something would fix an IAX issue? Anyway, the solution *should* be the same, except you change the 'tos' field for IAX from 'ef' default to zero.
 
By default, asterisk (at least as set up in piaf) sets the QoS bits for SIP and RTP packets to lower delay settings.

Not sure why the dig here. The PBX in a Flash default TOS settings are exactly what has been recommended for Asterisk. :crazy:
 
what dig?

Not sure why the dig here. The PBX in a Flash default TOS settings are exactly what has been recommended for Asterisk. :crazy:

Ward, I don't know how you read this as a dig at PIAF. I only qualified it since I haven't run anything else with SIP but PIAF, so I didn't want to generalize. And yes, this is the best practices setting - I was specifically addressing the fact that this is subverted by pfsense, and eliminating the QoS in asterisk and tweaking it in the pfsense gateway was the best way I had found to resolve this.
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top