[Asterisk-Users] Asterisk 1.2.1 Type of Service
Armin Schindler
armin at melware.de
Wed Jan 4 05:09:29 MST 2006
On Wed, 4 Jan 2006, Pete Barnwell wrote:
> On Wed, 2006-01-04 at 12:16 +0100, Armin Schindler wrote:
> > On Wed, 4 Jan 2006, Steve Beaumont wrote:
> > > Armin Schindler wrote:
> > >
> > > > On Tue, 3 Jan 2006, Steve Beaumont wrote:
> > > >
> > > >
> > > > > All,
> > > > >
> > > > > I seem to have a problem with Asterisk 1.2.1.
> > > > >
> > > > > Version 1.0.?? used to allow me to set the Type of Service bits to ef
> > > > > I.e.
> > > > > tos=0xb8 Diffserv EF (Expedited Forwarding) bits. This seems not to be
> > > > > working
> > > > > with 1.2.1:-
> > > > >
> > > > >
> > > > > Jan 3 19:26:26 VERBOSE[2702] logger.c: == Using TOS bits 0
> > > > > Jan 3 19:26:36 WARNING[2701] rtp.c: Unable to set TOS to 184
> > > > > Jan 3 19:33:01 WARNING[18290] rtp.c: Unable to set TOS to 184
> > > > > Jan 3 19:37:18 VERBOSE[2702] logger.c: == Using TOS bits 0
> > > > > Jan 3 19:37:34 WARNING[2701] rtp.c: Unable to set TOS to 184
> > > > > Jan 3 19:46:25 VERBOSE[2702] logger.c: == Using TOS bits 0
> > > > > Jan 3 19:46:38 WARNING[2701] rtp.c: Unable to set TOS to 184
> > > > >
> > > > >
> > > > > Any help would be appreciated as its playing havoc with the call
> > > > > quality :-(
> > > > >
> > > > >
> > > >
> > > > Do you run Asterisk as non-root ?
> > > > On Linux, only root has the default capability to set the high bits of
> > > > TOS byte.
> > > >
> > > > Armin
> > > >
> > > >
> > > >
> > > >
> > > >
> > > Armin,
> > >
> > > Thanks for the response yes, asterisk is running as user 'asterisk':-
> > >
> > > asterisk 2670 2629 0 08:25 ? 00:00:07 /usr/sbin/asterisk -U asterisk
> > > -G asterisk -vvvg -c
> > >
> > > This is an asterisk at home distribution Version 2.2
> > >
> > > Any idea's how I can runn asterisk as root with asterisk at home ?
> >
> > Sorry, I don't know anything about asterisk at home. I had the same problem
> > with OpenPBX which is also running as non-root.
> >
> > I managed to inherit the capability 'CAP_NET_ADMIN' which is necessary to
> > set the high TOS bits. For that I patched locally openpbx. I still have no
> > other/better idea.
> >
> > Armin
>
> Assuming your Asterisk boc isn't running any other services why not
> simply set the TOS with iptables?
Sure, and even with 'other services' the iptables filter rules should do
the job.
I just like the idea of having the program doing what ever is necessary
without other settings...
Armin
More information about the asterisk-users
mailing list