Re: [asterisk-users] QoS VoIP

2008-10-20 Thread Alex Balashov
A clearer explanation of your problem, including examples and output, is 
needed.

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


-- 
Alex Balashov
Evariste Systems
Web: http://www.evaristesys.com/
Tel: (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599

___
-- 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


Re: [asterisk-users] QoS VoIP

2008-10-20 Thread sean darcy
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 0x flowid 1:1
tc filter add dev $EXTIF protocol ip parent 1: prio 1 u32 match ip sport 
4569 0x 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