<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7233.28">
<TITLE>what might corrupt ulaw_encoder_pvt tail?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi,<BR>
<BR>
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.<BR>
<BR>
Sometimes, I get the following just before it dies.<BR>
<BR>
codec_ulaw.c:236 lintoulaw_framein: Out of buffer space<BR>
<BR>
I changed the warning to<BR>
<BR>
ast_log (LOG_WARNING, "Out of buffer space %d %d %d\n",tmp->tail,f->datalen/2,sizeof(tmp->outbuf));<BR>
<BR>
And I got this.<BR>
<BR>
codec_ulaw.c:236 lintoulaw_framein: Out of buffer space -262144 160 8096<BR>
<BR>
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.<BR>
<BR>
My * version is 1.2.1.<BR>
<BR>
thanks!<BR>
<BR>
<BR>
<BR>
--<BR>
-Todd<BR>
812-251-6644<BR>
</FONT>
</P>
</BODY>
</HTML>