Stuart Hirst
2003-Jul-20 17:16 UTC
[Asterisk-Users] Music on hold & Read error on sound device
I am having a problem getting music on hold working one of my servers. I have had this working on a PII 400 just fine but decided to upgrade my Asterisk server to a PIV 1.5ghz. I have installed mpg123 which seems to be working fine but when I start *, I get the following error message at the CLI prompt when I start *: WARNING[81931]: File chan_oss.c, Line 232 (sound_thread): Read error on sound device: Resource temporarily unavailable I have checked that the sound card works by loading X11 and running sound tests which is fine. I have used "lsof /dev/dsp" to see if another application or server is controlling the sound device and without * running, nothing is reported. With * running lsof reports that * has the device. Voicemail works fine. When I put a call on hold the CLI shows moh starting but nothing is played. No errors are reported whilst starting moh. I have been trying lots of different things for hours now without success. Anyone got any pointers ? Rgds, Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030720/10913561/attachment.htm
Brian Capouch
2003-Jul-20 17:46 UTC
[Asterisk-Users] Music on hold & Read error on sound device
Stuart Hirst wrote:> > When I put a call on hold the CLI shows moh starting but nothing is > played. No errors are reported whilst starting moh. > > I have been trying lots of different things for hours now without success. > > Anyone got any pointers ? >What does your musiconhold.conf file look like? B.
Steven Critchfield
2003-Jul-20 18:46 UTC
[Asterisk-Users] Music on hold & Read error on sound device
You didn't mention the distro you are using. I'm wondering if you are using one of the distros that leans towards the alsa drivers. If so, then chan_oss would have problems. On Sun, 2003-07-20 at 19:16, Stuart Hirst wrote:> I am having a problem getting music on hold working one of my servers. > I have had this working on a PII 400 just fine but decided to upgrade > my Asterisk server to a PIV 1.5ghz. > > I have installed mpg123 which seems to be working fine but when I > start *, I get the following error message at the CLI prompt when I > start *: > > WARNING[81931]: File chan_oss.c, Line 232 (sound_thread): Read error > on sound device: Resource temporarily unavailable > > I have checked that the sound card works by loading X11 and running > sound tests which is fine. I have used "lsof /dev/dsp" to see if > another application or server is controlling the sound device and > without * running, nothing is reported. With * running lsof reports > that * has the device. Voicemail works fine. > > When I put a call on hold the CLI shows moh starting but nothing is > played. No errors are reported whilst starting moh. > > I have been trying lots of different things for hours now without > success. > > Anyone got any pointers ? > > Rgds, > > Stuart-- Steven Critchfield <critch@basesys.com>
Stuart Hirst
2003-Jul-21 01:02 UTC
[Asterisk-Users] Music on hold & Read error on sound device
My musiconhold.conf is as below: ; ; Music on hold class definitions ; [classes] default => quietmp3:/var/lib/asterisk/mohmp3 loud => mp3:/var/lib/asterisk/mohmp3 random => quietmp3:/var/lib/asterisk/mohmp3,-z This has been copied from the working system as has the mp3 file into /var/lib/asterisk/mohmp3. The mp3 file also has the same permissions as the working system. Stuart -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Brian Capouch Sent: 21 July 2003 01:46 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Music on hold & Read error on sound device Stuart Hirst wrote:> > When I put a call on hold the CLI shows moh starting but nothing is > played. No errors are reported whilst starting moh. > > I have been trying lots of different things for hours now without > success. > > Anyone got any pointers ? >What does your musiconhold.conf file look like? B. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users