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

Karsten Wemheuer kwem at gmx.de
Fri Oct 30 03:53:21 CDT 2009


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.

HTH,

Karsten





More information about the asterisk-users mailing list