QOS and TDM400P

Hi All,
I am little bit confused here. I have CentOs server running asterisk and iptables firewall. I also have tc script to prioritize packets from IP Phones. TDM400P with 1xfxo and 1xfxs modules is also installed in the server. But my question is how would you prioritize the voice coming from phone connected to fxs port on TDM400.
Regards

Hi

Set the tos in the general section of the sip.conf / iax.conf then all traffic will be flagged

Ian

thanks Ian,
I put tos=0x10 in sip.conf. how can I capture those packets to see them if TOS is set ?
Would I be able to see output in the iptables?

Use wireshark to capture ip packets and check if tos is set.

Cheers.

Marco Bruni

Hi

from the linux prompt “tcpdump -n -i eth0 -w /tmp/wireshark.pcap -s 2000 udp port 5060
” then copy /tmp/wireshark.pcap to a machine with wireshark and have a look

Ian

Ok, Now I use astshape script to qos and I am convinced that asterisk is tagging packets with 0x18. I havent actually checked with wireshark yet. (still in the process of doing so)But when I download something while I was on the phone, the voice is little bit effected. Should i have shaping on downlink as well.