[Asterisk-bsd] STREAM FILE on OpenBSD

Jolan Luff asterisk-bsd@lists.digium.com
Fri, 11 Jun 2004 16:55:20 -0500


Hi,

I'm using the Asterisk stable branch on OpenBSD 3.4.  I've written
an AGI script which fetches the weather, generates an output sound
file via festival, and then read the results to the user via STREAM
FILE.

I developed this on a totally load free machine and I would
sporadically get:

file.c:993 ast_waitstream_full: Wait failed (Resource temporarily unavailable)

and the audio stream would stop.  I changed my script to generate 4
files instead of one large one and added some one second sleeps where
I thought they would help.  This did seem to make it occur less
often.

Once the script was finished, I moved it over to a lightly loaded
server (~6 concurrent calls) and now this occurs 100% of the time.

Looking at the code, and diffing from the development branch, there
doesn't seem to be anything obvious to me that would cause this to
happen on such lightly loaded machines.

Does anyone have any hints or suggestions on how to mitigate this?