[Asterisk-Users] Music on hold
C. Maj
cmaj-SPAM at freedomcorpse.com
Thu Jul 15 15:51:53 MST 2004
On Thu, 15 Jul 2004, Hall, Eric M. waxed:
> Nothing in the logs about mp3. the startup script is
> /etc/rc.d/init.d/asterisk
How about "fork failed" ?
> Here is the file
Hmm, this is similar, but not the same, to the file found in
the asterisk source contrib/init.d/ directory for RH. I
guess services are still the same as in Fedora, tho.
> [root at VoIPGW root]# cat /etc/rc.d/init.d/asterisk
> #!/bin/bash
> #
> # chkconfig: 2345 99 15
> # description: Open source PBX
> # processname: asterisk
>
> # source function library
> . /etc/rc.d/init.d/functions
>
> RETVAL=0
>
> case "$1" in
> start)
> echo -n "Starting Asterisk PBX: "
> /sbin/modprobe ixj
> daemon /usr/sbin/asterisk
Try changing this line to "daemon safe_asterisk" and make
sure safe_asterisk is installed. You'll find that in the
asterisk source contrib/scripts/ directory. Put it
somewhere in the path, like /usr/sbin would be good.
I don't actually use this script on RH, I only use the
safe_asterisk script from S99local. But that's pretty
non-standard.
> RETVAL=$?
> echo
> [ $RETVAL -eq 0 ] && touch /var/lock/subsys/asterisk
> ;;
> stop)
> echo -n "Shutting Asterisk PBX: "
> killproc asterisk
> /sbin/rmmod -r ixj
> RETVAL=$?
>
> echo
> [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/asterisk
> ;;
> restart|reload)
> $0 stop
> $0 start
> RETVAL=$?
> ;;
> status)
> status asterisk
> RETVAL=$?
> ;;
> *)
> echo "Usage: asterisk {start|stop|status|restart|reload}"
> exit 1
> esac
>
> exit $RETVAL
>
>
>
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of C. Maj
> Sent: Thursday, July 15, 2004 3:37 PM
> To: asterisk-users at lists.digium.com
> Subject: RE: [Asterisk-Users] Music on hold
>
> On Wed, 14 Jul 2004, Hall, Eric M. waxed:
>
> > FC1
> >
> > What I don't understand is why it works using the -vvvvvgcd but not
> > when just running asterisk ?
>
> Are there any log messages about the mp3 player not being spawned ?
> Like "Fork failed" or "unable to spawn mp3player"
> ?
>
> I am unfamiliar with how FC1 starts a service. Is this something you
> added yourself ?
>
> --Chris
>
>
> > -----Original Message-----
> > From: asterisk-users-admin at lists.digium.com
> > [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of C. Maj
> > Sent: Wednesday, July 14, 2004 5:26 PM
> > To: asterisk-users at lists.digium.com
> > Subject: Re: [Asterisk-Users] Music on hold
> >
> > On Wed, 14 Jul 2004, Hall, Eric M. waxed:
> >
> > > I have been working on the music on hold part for a few hours today
> > > and I found something that just doesn't sound right.
> > >
> > > If I just run asterisk via service "service asterisk start'
> > > everything
> >
> > > work but MOH If I run it via asterisk -vvvvvgcd MOH works...
> > >
> > >
> > > Any idea what the difference is ?
> >
> > MOH is done via external mpg123 processes, maybe the service stuff
> > doesn't like spawning external processes ? What distro are you
> > running ?
> >
> > --Chris
> >
> >
> > --
> > Chris Maj, Rochester
> > cmaj_at_freedomcorpse_dot_com
> > Pronunciation Guide: Maj == May
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> --
> Chris Maj, Rochester
> cmaj_at_freedomcorpse_dot_com
> Pronunciation Guide: Maj == May
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
Chris Maj, Rochester
cmaj_at_freedomcorpse_dot_com
Pronunciation Guide: Maj == May
More information about the asterisk-users
mailing list