The patch shows what I did to get Asterisk to run under NetBSD-current
on i386 -- but there's still some work remaining. There are problems
with pthreads mutexes, of the kind we're used to seeing with third
party applications using the NetBSD pthreads library. For now, I am
running Asterisk with the pthreads library configured to ignore
application errors (see the manual page pthread(3)), but plan to try
to debug this better in the future.
There are also a couple of problems with "music on hold". It keeps
complaining about events scheduled into the past, and is unable to
stop mpg123 when Asterisk is asked to shut down -- I have to kill it
manually. For now, I've simply uninstalled the mpg123 application, to
avoid the problem, but that, too, needs further debugging.
-tih
--
Tom Ivar Helbekkmo, Senior System Administrator, EUnet Norway
www.eunet.no T: +47-22092958 M: +47-93013940 F: +47-22092901
Posted: Sat Aug 21, 2004 7:29 pm Post subject: [Asterisk-bsd] NetBSD patch
Some of that sounds familiar. There were several different issues that
exhibit symptoms for music on hold.
If mpg123 is consuming much of the CPU when it fails to exit, here's a patch
that might address that problem. The mpg123 authors adopted a more complete
fix for the issue, so their cvs head may work better yet.
I'll add NetBSD 1.6.2 to my list of test platforms so I can help at some
point in the near future.
Rich
Quote:
-----Original Message-----
From: asterisk-bsd-admin@lists.digium.com
[mailto:asterisk-bsd-admin@lists.digium.com] On Behalf Of Tom
Ivar Helbekkmo
Sent: Saturday, August 21, 2004 3:11 AM
To: asterisk-bsd@lists.digium.com
Subject: Re: [Asterisk-bsd] NetBSD patch
The patch shows what I did to get Asterisk to run under
NetBSD-current on i386 -- but there's still some work
remaining. There are problems with pthreads mutexes, of the
kind we're used to seeing with third party applications using
the NetBSD pthreads library. For now, I am running Asterisk
with the pthreads library configured to ignore application
errors (see the manual page pthread(3)), but plan to try to
debug this better in the future.
There are also a couple of problems with "music on hold". It
keeps complaining about events scheduled into the past, and
is unable to stop mpg123 when Asterisk is asked to shut down
-- I have to kill it manually. For now, I've simply
uninstalled the mpg123 application, to avoid the problem, but
that, too, needs further debugging.
If mpg123 is consuming much of the CPU when it fails to exit, here's
a patch that might address that problem.
It did, but that patch didn't fix it. I'll look at it more closely
later on, but for now I'm off to London for a week of learning Tivoli
Enterprise Console programming at IBM's training facility there. :-)
-tih
--
Tom Ivar Helbekkmo, Senior System Administrator, EUnet Norway
www.eunet.no T: +47-22092958 M: +47-93013940 F: +47-22092901
> If mpg123 is consuming much of the CPU when it fails to exit, here's
> a patch that might address that problem.
It did, but that patch didn't fix it. I'll look at it more closely
later on, but for now I'm off to London for a week of learning Tivoli
Enterprise Console programming at IBM's training facility there. :-)
-tih
Tom,
The problem is with the fork in the moh process this gets all other
threads locked out until the mpg123 exits. I could not find out what the
problem is so I did this
Posted: Sat Aug 21, 2004 10:14 pm Post subject: [Asterisk-bsd] NetBSD patch
On Sat, 2004-08-21 at 23:10, Chris Stenton wrote:
Quote:
On Sat, 2004-08-21 at 20:57, Tom Ivar Helbekkmo wrote:
> "Dr. Rich Murphey" <rich@WhiteOakLabs.com> writes:
>
> > If mpg123 is consuming much of the CPU when it fails to exit, here's
> > a patch that might address that problem.
>
> It did, but that patch didn't fix it. I'll look at it more closely
> later on, but for now I'm off to London for a week of learning Tivoli
> Enterprise Console programming at IBM's training facility there. :-)
>
> -tih
Tom,
The problem is with the fork in the moh process this gets all other
threads locked out until the mpg123 exits. I could not find out what the
problem is so I did this
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum