[Asterisk-Dev] masquerade and ZOMBIE problem and question
Sergio Chersovani
mlists at c-net.it
Wed Oct 26 13:45:19 MST 2005
Kevin P. Fleming ha scritto:
> 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.
uhm, well I will take a closer look to the code, but I really don't see
where the ast_channel_free is called when the channel goes ZOMBIE in the
"else" statement of the ast_do_masquerade
Sergio
More information about the asterisk-dev
mailing list