[Asterisk-Users] Music on hold
Hall, Eric M.
ehall at amaxx.com
Thu Jul 15 14:43:51 MST 2004
Nothing in the logs about mp3. the startup script is
/etc/rc.d/init.d/asterisk
Here is the file
[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
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
More information about the asterisk-users
mailing list