[asterisk-dev] ast_frame allocation/free question

Kevin P. Fleming kpfleming at digium.com
Tue Nov 27 14:11:14 CST 2007

Sergio Garcia Murillo wrote:

> I agree, but I think that it's a usually a good practice that the one that
> allocates
> the memory is the reponsible of freeing it. What I don't really see is why
> the
> apps need to call the ast_frfree on frames they have just readen.

This makes no sense; once chan_sip has fed you a frame of audio data,
why should it care who frees it, and more importantly, how could it
possibly know that the frame is no longer needed?

Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)

More information about the asterisk-dev mailing list