[Asterisk-Dev] ast_waitstream_full: Wait failed (Resource temporarily unavailable)

Gil Kloepfer astr-dev at kloepfer.org
Fri Oct 1 12:16:16 MST 2004


Dinesh-

On Fri, Oct 01, 2004 at 12:19:21PM +0800, Dinesh Nair wrote:
> excellent, gil. my first observation of the problem was voicemail hanging 
> up on me as well, which i then tracked down to the SayNumber application, 
> and further back to ast_waitstream_full().
> 
> your solution mirrors the observation (and solution) i posted as well.
> 
> so, based on your experience, it'd be ok to modify that snippet of code to
> 
> if (audiofd > -1 && ctrlfd > -1) in all places that it occurs in say.c ?

That's exactly what I did and it seems to have addressed the problem.  

Given what the values of audiofd and ctrlfd are supposed to be, the
original conditional (just testing for non-zero) doesn't make a
lot of sense.  If the fix above solves your problem as well, let me know
and I can open it as a bug.  I just didn't want to do this until someone
else on the list confirmed what I discovered (I know how Mark tends to
be about these things).

---
Gil Kloepfer
astr-dev at kloepfer.org



More information about the asterisk-dev mailing list