Posted: Thu Jul 22, 2004 3:33 pm Post subject: [Asterisk-bsd] [FreeBSD 5.2.1. Only] Music On Hold forkblock
mpg123 -v
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
...
pkg_info -x mpg
Information for mpg123-esound-0.59r_13:
..
Rich
Quote:
-----Original Message-----
From: asterisk-bsd-admin@lists.digium.com
[mailto:asterisk-bsd-admin@lists.digium.com] On Behalf Of
Chris Stenton
Sent: Thursday, July 22, 2004 10:10 AM
To: asterisk-bsd@lists.digium.com
Subject: RE: [Asterisk-bsd] [FreeBSD 5.2.1. Only] Music On
Hold forkblocksother threads
Rich,
going back one step which port version are you using of
mpg123 I have tried your patch on the std mpg123 port and it
made no difference.
Are you using mpg123 or mpg123.el ?
On Thu, 2004-07-22 at 15:32, Dr. Rich Murphey wrote:
> I compile and link with the -pthreads option, so it should
be using libc_r:
>
> ldd asterisk
> asterisk:
> libc_r.so.5 => /usr/lib/libc_r.so.5 (0x280fe000)
> libncurses.so.5 => /lib/libncurses.so.5 (0x28122000)
> libm.so.2 => /lib/libm.so.2 (0x28162000)
> libcrypto.so.3 => /lib/libcrypto.so.3 (0x2817b000)
> libssl.so.3 => /usr/lib/libssl.so.3 (0x28289000)
> libc.so.5 => /lib/libc.so.5 (0x282bb000)
>
> ulimit -a
> core file size (blocks, -c) unlimited
> data seg size (kbytes, -d) 524288
> file size (blocks, -f) unlimited
> max locked memory (kbytes, -l) unlimited
> max memory size (kbytes, -m) unlimited
> open files (-n) 11095
> pipe size (512 bytes, -p) 1
> stack size (kbytes, -s) 65536
> cpu time (seconds, -t) unlimited
> max user processes (-u) 5547
> virtual memory (kbytes, -v) unlimited
>
> I'm not sure what the differences in environment are.
Perhaps we can
> compare .conf files as well?
>
> Rich
>
> > -----Original Message-----
> > From: asterisk-bsd-admin@lists.digium.com
> > [mailto:asterisk-bsd-admin@lists.digium.com] On Behalf Of Chris
> > Stenton
> > Sent: Thursday, July 22, 2004 9:15 AM
> > To: asterisk-bsd@lists.digium.com
> > Subject: RE: [Asterisk-bsd] [FreeBSD 5.2.1. Only] Music
On Hold fork
> > blocksother threads
> >
> > Rich,
> >
> > This is very strange what threads library are you linking with?
> >
> > I have the same result as Konstantin with no zaptel driver loaded.
> >
> > Scratching around for ideas ... have you tweaked your
standard login
> > environment?
> >
> > Chris
> >
> > On Thu, 2004-07-22 at 15:02, Dr. Rich Murphey wrote:
> > > MOH is working here on 5.2.1 when there is no zaptel or
> > ztdummy driver
> > > loaded.
> > >
> > > Rich
> > >
> > > > -----Original Message-----
> > > > From: asterisk-bsd-admin@lists.digium.com
> > > > [mailto:asterisk-bsd-admin@lists.digium.com] On Behalf Of
> > Konstantin
> > > > Prokazoff
> > > > Sent: Thursday, July 22, 2004 8:55 AM
> > > > To: asterisk-bsd@lists.digium.com
> > > > Subject: Re: [Asterisk-bsd] [FreeBSD 5.2.1. Only] Music
> > On Hold fork
> > > > blocks other threads
> > > >
> > > > This problem avail. not only in fbsd521.
> > > > I have same problems on 4.9.
> > > >
> > > > ----- Original Message -----
> > > > From: "Chris Stenton" <jacs@gnome.co.uk>
> > > > To: <asterisk-bsd@lists.digium.com>
> > > > Sent: Thursday, July 22, 2004 4:39 PM
> > > > Subject: [Asterisk-bsd] [FreeBSD 5.2.1. Only] Music
On Hold fork
> > > > blocks other threads
> > > >
> > > >
> > > > > I have put a bug report in for a problem I am having
> > with MOH. If
> > > > > anyone
> > > > has
> > > > > any ideas please respond.
> > > > >
> > > > > http://bugs.digium.com/bug_view_page.php?bug_id=0002110
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > > > Chris
> > > > >
> > > > > _______________________________________________
> > > > > 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
> > > >
> > > >
> > >
> > >
> > > _______________________________________________
> > > 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
> >
> >
>
>
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
Posted: Thu Jul 22, 2004 4:16 pm Post subject: [Asterisk-bsd] [FreeBSD 5.2.1. Only] Music On Hold forkblock
Rich wrote :-
mpg123 -v
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
...
pkg_info -x mpg
Information for mpg123-esound-0.59r_13:
.. snip
Well it looks like it is a config issue cos I seem to have the same
version as you. I also tried the code below which generates a couple of
forked threads and they work ok.
Chris
/*
* Three threads
* one that just counts
* two that fork and use tail -f on the maillog
* just send a test mail to see if the forks are working
*/
pthread_mutex_lock (status->mut);
status->data++;
usleep(500000);
printf("******slave me me me %d *********** \n",status->data );
pthread_mutex_unlock (status->mut);
}
return (NULL);
}
#define BUFSIZE 512
int makefork(void)
{
pid_t pid;
int pfildes[2];
int n;
char buf[BUFSIZE];
if (pipe(pfildes) == -1) {perror("demo"); return(0);}
if ((pid = fork()) == -1) {perror("demo"); return(0);}
else if (pid == 0) { /* child: "tail -f /var/log/maillog
*/
close(pfildes[0]); /* close read end of pipe */
dup2(pfildes[1],1); /* make 1 same as write-to end of pipe */
close(pfildes[1]); /* close excess fildes */
execlp("/usr/bin/tail","tail","-f","/var/log/maillog",NULL);
perror("demo"); /* still around? exec failed */
return(0); /* no flush */
}
else { /* parent: "/usr/bin/wc" */
close(pfildes[1]); /* close write end of pipe */
dup2(pfildes[0],0); /* make 0 same as read-from end of pipe */
close(pfildes[0]); /* close excess fildes */
printf("slavefork started \n");
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