[Asterisk-Dev] what might corrupt ulaw_encoder_pvt tail?

Goldfinger, Todd A goldfita at rose-hulman.edu
Fri Dec 23 10:51:47 MST 2005


Hi,

I've written a short application to insert one linear pcm file into another.  It appears to work, but occasionally asterisk dies without warning when I later run ast_streamfile from a different application.  Whether asterisk crashes or not, the new file appears to be correct.  It's still 8k, 16bit.  I can open and listen to it.

Sometimes, I get the following just before it dies.

codec_ulaw.c:236 lintoulaw_framein: Out of buffer space

I changed the warning to

ast_log (LOG_WARNING, "Out of buffer space %d %d %d\n",tmp->tail,f->datalen/2,sizeof(tmp->outbuf));

And I got this.

codec_ulaw.c:236 lintoulaw_framein: Out of buffer space -262144 160 8096

I don't understand why the if statement on line 234 would even execute.  But in any case, it seems tail is corrupted.  Does anyone know what might cause this?  I'm not sure where to go from here.

My * version is 1.2.1.

thanks!



-- 
-Todd
812-251-6644
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20051223/56866379/attachment.htm


More information about the asterisk-dev mailing list