[Asterisk-Dev] masquerade and ZOMBIE problem and question

Kevin P. Fleming kpfleming at digium.com
Wed Oct 26 13:35:51 MST 2005


Sergio Chersovani wrote:

> I did already read the ast_read function, but there's nothing that free 
> the channel. This is the code where the channel goes when it is ZOMBIE. 
> So the ast_read returns NULL and the channel is still there. It should 
> be safe to add ast_channelfree(chan); before exiting the function

No, you can't do that. The caller that called ast_read() is going to 
expect the channel to still exist when ast_read() returns.



More information about the asterisk-dev mailing list