[asterisk-dev] [Code Review] 2583: Make ast_bridge_snapshot_to_json conform to the swagger Bridge model

David Lee reviewboard at asterisk.org
Mon Jun 3 16:59:41 CDT 2013


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



trunk/main/bridging.c
<https://reviewboard.asterisk.org/r/2583/#comment17261>

    Bridge capabilities is a bitset. Shouldn't we expect a bridge to have more than one of these bits set at a given time?



trunk/main/stasis_bridging.c
<https://reviewboard.asterisk.org/r/2583/#comment17262>

    Technically, the conversion of a function pointer to a data pointer is non-standard behavior. I'm sure that somewhere out there someone runs Asterisk on a system where function pointers and data pointers are different sizes.
    
    http://stackoverflow.com/a/5579907/115478


- David Lee


On June 3, 2013, 1:42 p.m., opticron wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2583/
> -----------------------------------------------------------
> 
> (Updated June 3, 2013, 1:42 p.m.)
> 
> 
> Review request for Asterisk Developers and David Lee.
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> This adds two new fields to the JSON blob produced by ast_bridge_snapshot_to_json so that it conforms to the requirements of the JSON swagger model and reformulates the existing fields to be more swagger-friendly. This also exposes an existing capability to string function and introduces a companion conversion function.
> 
> 
> Diffs
> -----
> 
>   trunk/include/asterisk/bridging.h 390379 
>   trunk/include/asterisk/stasis_bridging.h 390379 
>   trunk/main/bridging.c 390379 
>   trunk/main/stasis_bridging.c 390379 
>   trunk/rest-api/api-docs/bridges.json 390379 
> 
> Diff: https://reviewboard.asterisk.org/r/2583/diff/
> 
> 
> Testing
> -------
> 
> Made sure the messages came out right over Stasis-HTTP.
> 
> 
> Thanks,
> 
> opticron
> 
>

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


More information about the asterisk-dev mailing list