[asterisk-dev] [Code Review] New Media Architecture phase 1 step 2 - Initial Translation Fixes

Terry Wilson reviewboard at asterisk.org
Wed Jan 12 12:55:09 CST 2011


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


Great work. I didn't find much. :-)


/trunk/main/translate.c
<https://reviewboard.asterisk.org/r/1064/#comment6349>

    Just adding a note to your todo here in case you missed it, since I noticed that growing code exists.



/trunk/main/translate.c
<https://reviewboard.asterisk.org/r/1064/#comment6350>

    same comparison of src & AST_FORMAT_AUDIO_MASK done twice, I think this should be src and dst.


- Terry


On 2010-12-23 13:28:19, David Vossel wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1064/
> -----------------------------------------------------------
> 
> (Updated 2010-12-23 13:28:19)
> 
> 
> Review request for Asterisk Developers and Russell Bryant.
> 
> 
> Summary
> -------
> 
> For detailed information pertaining to this patch, please review the section of the Media Architecture document linked to below.
> 
> https://wiki.asterisk.org/wiki/display/AST/Media+Architecture+Proposal#MediaArchitectureProposal-RevisedFormatTranslation
> 
> Phase 1 Step 2 items
> -Define translation cost table.
> -Replace current matrix algorithm with new matrix algorithm using predefined costs from table.
> -Continue to use computational costs for tie breaking translators with identical src and dst formats.
> -Create table for mapping format ids to matrix index values. This is required once the conversion from the format bit field representation to a numeric value takes place and will allow for a smoother transition.
> 
> In addition to the items listed above, I have also cleaned up and reorganized the cli "core show translation ... " function.  It was difficult to maintain, and this felt like a good opportunity to clean it up.
> 
> 
> Diffs
> -----
> 
>   /trunk/include/asterisk/translate.h 299581 
>   /trunk/main/asterisk.c 299581 
>   /trunk/main/translate.c 299581 
> 
> Diff: https://reviewboard.asterisk.org/r/1064/diff
> 
> 
> Testing
> -------
> 
> Tested that translation table and paths are built correctly.
> Made some test calls requiring translation, verified paths are still created and used correctly.
> 
> 
> Thanks,
> 
> David
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110112/f98a0359/attachment.htm>


More information about the asterisk-dev mailing list