I am currently running an asterisk server locally on a PC, to see what kinds of things it can do. The output device is the sound system, via alsa. It starts perfectly and plays the first sounds but after a minute or to the sound dies and several messages Mar 3 21:30:29 WARNING[180236]: chan_oss.c:272 sound_thread: Failed to write sound Mar 3 21:30:29 WARNING[180236]: chan_oss.c:181 send_sound: Unable to read output space are issued. This looks like an alsa lock. I have tried to run the system both with and without esd. When running lsof for /dev/dsp only asterik and it's child processes are using it. Has anybody experienced this? thanks in advance Juan Pablo Morales
One of the Possibilities could be that there is no disk space available, or permissions. Do you get same error if you are root ?> > I am currently running an asterisk server locally on a PC, to see what > kinds of things it can do. The output device is the sound system, via > alsa. It starts perfectly and plays the first sounds but after a minute > or to the sound dies and several messages > Mar 3 21:30:29 WARNING[180236]: chan_oss.c:272 sound_thread: Failed to > write sound > Mar 3 21:30:29 WARNING[180236]: chan_oss.c:181 send_sound: Unable to > read output space > > are issued. > This looks like an alsa lock. I have tried to run the system both with > and without esd. When running lsof for /dev/dsp only asterik and it's > child processes are using it. > > Has anybody experienced this? > > thanks in advance > Juan Pablo Morales > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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 >
Anand S. Katti wrote:>One of the Possibilities could be that there is no disk space available, >or permissions. Do you get same error if you are root ? >I am running as root, and have 5.5GB of free space
venkatesh.seshasayee@wipro.com
2004-Mar-04 06:34 UTC
[Asterisk-Users] ALSA Sound dies after a while
It could be a case of the application trying to send more data than what the sound driver can handle. For debugging purposes, in chan_oss.c:181, you could try invoking sleep() for a few milliseconds, without returning -1 right away. (of course, for sleep(), the granularity is seconds, so you'd have to use usleep() ). venkat> -----Original Message----- > From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users- > admin@lists.digium.com] On Behalf Of Juan Pablo Morales > Sent: Thursday, 4 March 2004 6:20 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] ALSA Sound dies after a while > > I am currently running an asterisk server locally on a PC, to see what > kinds of things it can do. The output device is the sound system, via > alsa. It starts perfectly and plays the first sounds but after aminute> or to the sound dies and several messages > Mar 3 21:30:29 WARNING[180236]: chan_oss.c:272 sound_thread: Failedto> write sound > Mar 3 21:30:29 WARNING[180236]: chan_oss.c:181 send_sound: Unable to > read output space > > are issued. > This looks like an alsa lock. I have tried to run the system both with > and without esd. When running lsof for /dev/dsp only asterik and it's > child processes are using it. > > Has anybody experienced this? > > thanks in advance > Juan Pablo Morales > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-usersConfidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately and destroy all copies of this message and any attachments.