[asterisk-dev] [Code Review] 4453: Asterisk 14: RTP improvements

Mark Michelson reviewboard at asterisk.org
Thu Mar 5 10:13:17 CST 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4453/#review14599
-----------------------------------------------------------


I have made the following wiki changes based on feedback:

* Fixed grammar and formatting of SRTP section on RFC notes page
* Removed language about buffering/synchronization on RTP engine replacement page
* Added section at the end of RTP engine replacement with my current opinion about refactoring over rewriting
* Removed language about buffering/synchronization on RTP task list page, replacing it instead with an RTP packet handler

There are still some unaddressed action items:

* Native RTP bridging. Matt suggested a change to native RTP bridging code. As I pointed out before, I'm fine with the idea of improving how native RTP bridges work, but it does go beyond the original scope of the project. Since my current leaning for the RTP work is a refactor of res_rtp_asterisk rather than a writing a new RTP engine, I think there is a bit of wiggle room for expanding the scope, though.
* Testing. Frankly, I'm hesitant to write out testing ideas before the idea of what all is changing gets nailed down. If you had asked me about what I envisioned as a test plan prior to the original round of feedback, I would have told you that most tests would have been all about buffering, reordering, and synchronization of RTP streams. However, since that has been removed from the scope of the RTP engine, it means that the focus of testing has to be changed too. However, I do think I could take some action now in writing *how* testing could be performed without having to rely on channel drivers, etc. I just haven't done that yet.

- Mark Michelson


On Feb. 27, 2015, 6:47 p.m., Mark Michelson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/4453/
> -----------------------------------------------------------
> 
> (Updated Feb. 27, 2015, 6:47 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Description
> -------
> 
> I've created a series of wiki pages that discuss the idea of writing an improved RTP architecture in Asterisk 14.
> 
> To regurgitate some details from the linked page, the current RTP engine in Asterisk (res_rtp_asterisk) gets the job done but has some issues. It is not architected in a way that allows for easy insertion of new features. It has dead code (or code that might as well be dead). And it has some general flaws in it with regards to following rules defined by fundamental RFCs.
> 
> I have approached these wiki pages with the idea of writing a replacement for res_rtp_asterisk.c. The reason for this is that there are interesting media-related IETF drafts (trickle ICE and BUNDLE, to name two) that would be difficult to implement in the current res_rtp_asterisk.c code correctly. Taking the opportunity to re-engineer the underlying architecture into something more layered and extendable would help in this regard. The goal also is to not disturb the high-level RTP engine API wherever possible, meaning that channel drivers will not be touched at all by this set of changes.
> 
> The main page where this is discussed is here: https://wiki.asterisk.org/wiki/display/AST/RTP+engine+replacement . This page has a subpage that has my informal rambling notes regarding a sampling of RTP and media-related RFCs and drafts I read. It also has a subpage with more informal and rambling notes about the current state of RTP in Asterisk. While these pages are not really part of the review, you may want to read them anyway just so you might have some idea of where I'm coming from when drawing up the ideas behind a new architecture.
> 
> I also have a task list page that details a list of high-level tasks that would need to be performed if a new RTP engine were to be written: https://wiki.asterisk.org/wiki/display/AST/RTP+task+list . This should give some idea of the amount of work required to make a new RTP engine a reality. The tasks with (?) around them are tasks that add new features to Asterisk's RTP support, and it is therefore questionable whether they fit in the scope of this work at this time.
> 
> Some things to consider when reading through this:
> * Refactor or rewrite? When considering current issues with RTP/RTCP in Asterisk, and considering the types of features that are coming down the pipe, which of these options seems more prudent?
> * Does the proposed architecture make sense from a high level? Is there confusion about how certain areas are intended to work?
> * Are there any glaring details you can think of that have been left out?
> * Are there any questions about how specific features would fit into the described architecture?
> 
> 
> Diffs
> -----
> 
> 
> Diff: https://reviewboard.asterisk.org/r/4453/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Mark Michelson
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20150305/3bac7037/attachment-0001.html>


More information about the asterisk-dev mailing list