[asterisk-dev] Hi all, is struct ast_frame encoded by any codec?

Tilghman Lesher tlesher at digium.com
Thu Sep 9 15:21:19 CDT 2010


On Thursday 09 September 2010 04:51:43 John Wu wrote:
> Is struct ast_frame transfer in asterisk channel just the rtp frame my
> application send out?

No, the data portion of the ast_frame may be the rtp frame, though.  There's
an additional 'offset' element within the frame that points to the audio data
within whatever structure 'data' points to, and there's additional information
about the audio codec within ast_frame.  The point of all this is to make
ast_frame extremely efficient as a method of carting audio around within
Asterisk.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list