[asterisk-dev] AST_FRAME_NULL - what is it?

Moises Silva moises.silva at gmail.com
Fri May 29 10:09:46 CDT 2009


> I don't know why Asterisk is sending us the AST_FRAME_NULL's or what
> it's supposed to mean, but, our CPU is getting pegged from having to
> process and ignore all those frames. CPU is NOT pegged when a SIP
> client connects which is not sending us these null frames.
>
> Can anyone please advise why this is happening, and how we can get it
> to stop?

I think someone is holding that channel lock and then you're calling
ast_read from your thread which is causing ast_read to return a null
frame because it cannot take the lock (check main/channel.c in
function __ast_read()). If that't the case you need to find who is
locking that channel and not releasing it.

Can you reproduce this easily? You should dive into main/channel.c and
channels/chan_sip.c to check who's returning that frame.

-- 
Moises Silva
Software Developer
Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON
L3R 9T3 Canada
t. 1 905 474 1990 x 128 | e. moy at sangoma.com



More information about the asterisk-dev mailing list