Anael DIAZ wrote:
> Hi!
> I have some problem in my asterisk 1.4.2, I've installed it on centOS 5.2
> and this didn't accept voip QoS and can't route the packets having voip 
> QoS.
> So  I should change voip packets to be routing with centOS.
> I want to use iproute2 but i don't what to do after installing iproute2.
> Anyone could help me please?
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

This stuff is pure voodoo. I've found very little good specific instruction.

I put this into rc.local to set up QoS. I'm not sure I understood it 
then, and I'm sure I don't understand it now, but it may be useful to you.

I also put the various tos stuff in sip.conf, etc.

cat tos.local
## eth1 is the external interface
## remove the queues
EXTIF=eth1
tc qdisc del dev $EXTIF root

## This is to set up QoS for voip - specifically iax.
## from http://www.howtoforge.com/voip_qos_traffic_shaping_iproute2_asterisk
##  ethx is the *external* port

tc qdisc add dev $EXTIF root handle 1: prio priomap 2 2 2 2 2 2 2 2 1 1 
1 1 1 1 1 0
tc filter add dev $EXTIF protocol ip parent 1: prio 1 u32 match ip dport 
4569 0xffff flowid 1:1
tc filter add dev $EXTIF protocol ip parent 1: prio 1 u32 match ip sport 
4569 0xffff flowid 1:1
tc filter add dev $EXTIF protocol ip parent 1: prio 1 u32 match ip tos 
0x10   0xff  flowid 1:2

Please post anything you do find.

Good luck.

sean


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to