[asterisk-users] Unable to set TOS to 184?

John A. Sullivan III jsullivan at opensourcedevel.com
Fri Oct 30 04:07:50 CDT 2009


On Fri, 2009-10-30 at 09:53 +0100, Karsten Wemheuer wrote:
> Hi Bart,
> 
> Am Donnerstag, den 29.10.2009, 16:36 -0700 schrieb Bart Fisher:
> > I don't understand this message:
> >  
> > [2009-10-29 16:31:51] WARNING[28510]: rtp.c:1997 ast_rtp_settos:
> > Unable to set TOS to 184
> 
> You did not tell us, which version of asterisk You are running.
> 
> The kernel restricts setting of high ToS-bits for non-root users. To
> allow a process to run as non-root and be able to set these bits, there
> is the possibility to use 'capabilities'. This feature was implemtented
> and fixed in the past (issues 7074 and 14004 at issues.asterisk.org).
>  
> > I found one post that says to run at boot:
> >  
> > #!/bin/bash 
> > /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
> 
> In case Your iptables is working, I think You can ignore the warning.
<snip>
I'm assuming this is working for non-root users in 1.6.1.6.  I'm pretty
sure the last time I took a packet trace, TOS was being set properly and
I am not running as root - John
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan at opensourcedevel.com

http://www.spiritualoutreach.com
Making Christianity intelligible to secular society




More information about the asterisk-users mailing list