[Asterisk-bsd] FreeBSD and Music on Hold -- Possible Fix
Chris Stenton
asterisk-bsd@lists.digium.com
Thu, 17 Jun 2004 10:59:44 +0100
Rich,
that makes no difference.
Sticking asterisk in the gdb I notice that it appears to be in
monmp3thread all the time.
In the loop
for(;/* ever */;) {
Its doing this
if (class->pseudofd > -1) {
/* Pause some amount of time */
res = read(class->pseudofd, buf, sizeof(buf));
and then this
if (!class->members)
continue;
Chris
On Thu, 2004-06-17 at 05:30, Dr. Rich Murphey wrote:
> It appears to be a bug in the FreeBSD mpg123 port.
>
> Try copying this patch to /usr/ports/audio/mpg123/files:
>
> http://www.whiteoaklabs.com/code/patch-mpg123.c
>
> and reinstall it, and see if that fixes it.
>
> mpg123 is going into an infinite loop in
> play_frame() when it sees an end of file
> while trying to read a command. The patch
> breaks that loop upon an end of file.
>
> Cheers,
> Rich
>
>
> > -----Original Message-----
> > From: asterisk-bsd-admin@lists.digium.com [mailto:asterisk-bsd-
> > admin@lists.digium.com] On Behalf Of Chris Stenton
> > Sent: Monday, June 14, 2004 12:02 PM
> > To: asterisk-bsd@lists.digium.com
> > Subject: [Asterisk-bsd] FreeBSD and Music on Hold
> >
> > I can't get Music on Hold to work on FreeBSD/asterisk-current. I am using
> > the mpg123 port and once MOH is enabled the loading of the asterisk
> > console
> > goes incredibly slowly.
> >
> > _______________________________________________
> > Asterisk-BSD mailing list
> > Asterisk-BSD@lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-bsd
> >
>
>
>
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd