thank you all !<br><br><div class="gmail_quote">On Fri, Sep 10, 2010 at 5:55 AM, Russell Bryant <span dir="ltr"><<a href="mailto:russell@digium.com">russell@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
On Thu, 2010-09-09 at 15:21 -0500, Tilghman Lesher wrote:<br>
> On Thursday 09 September 2010 04:51:43 John Wu wrote:<br>
> > Is struct ast_frame transfer in asterisk channel just the rtp frame my<br>
> > application send out?<br>
><br>
> No, the data portion of the ast_frame may be the rtp frame, though. There's<br>
> an additional 'offset' element within the frame that points to the audio data<br>
> within whatever structure 'data' points to, and there's additional information<br>
> about the audio codec within ast_frame. The point of all this is to make<br>
> ast_frame extremely efficient as a method of carting audio around within<br>
> Asterisk.<br>
<br>
</div>Even if some RTP headers may be there, no code outside of the RTP system<br>
should assume that or try to touch that part of the buffer. That would<br>
be evil (and extremely error prone).<br>
<br>
The key point here is that ast_frame is a generic structure inside of<br>
Asterisk used to carry signaling and media information. It has nothing<br>
to do with RTP frames.<br>
<font color="#888888"><br>
<br>
--<br>
Russell Bryant<br>
Digium, Inc. | Engineering Manager, Open Source Software<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
jabber: <a href="mailto:rbryant@digium.com">rbryant@digium.com</a> -=- skype: russell-bryant<br>
<a href="http://www.digium.com" target="_blank">www.digium.com</a> -=- <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a> -=- <a href="http://blogs.asterisk.org" target="_blank">blogs.asterisk.org</a><br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br>