Qos not working

Hi,

I have a server running Asterisk on my network, and i’m trying to add some QoS.

But on wireshark I can see that paquets are not marqued.
I tried with two differents methods.

The first time I modified asterisks conf files.

on sip.conf I added:

tos_sip=cs3 ; Sets TOS for SIP packets. tos_audio=ef ; Sets TOS for RTP audio packets. tos_video=af41 ; Sets TOS for RTP video packets.

on iax.conf:

and on iaxprov.conf:

But nothing, DSCP is still equall to 0x00

So the second time I tried to mark packets using iptables with:

iptables -A OUTPUT -t mangle -p udp -m udp --dport 5060 -j DSCP --set-dscp 0x28 iptables -A OUTPUT -t mangle -p udp -m udp --sport 10000:20000 -j DSCP --set-dscp 0x28

But packets are still not marked

If someone has an idea please?

thanks[/code]

did you ever find a solution for this? I’m having the same problem.

Try this … I have looked at the packets coming out of my * box with tcpdump, and they looked OK.

/sbin/iptables -A OUTPUT -t mangle -p udp -m udp --sport 4569 -j DSCP --set-dscp-class ef
/sbin/iptables -A OUTPUT -t mangle -p udp -m udp --sport 10000:20000 -j DSCP --set-dscp-class ef
/sbin/iptables -A OUTPUT -t mangle -p udp -m udp --sport 5060 -j DSCP --set-dscp-class ef

Alternatively … what kind of router are you using for QoS. Maybe match on source port and prioritize that way.