[asterisk-dev] [Code Review] 2425: Add bridge CLI commands.

rmudgett reviewboard at asterisk.org
Thu Apr 11 17:14:42 CDT 2013



> On April 11, 2013, 9:54 p.m., Mark Michelson wrote:
> > /team/group/bridge_construction/main/bridging.c, lines 4393-4406
> > <https://reviewboard.asterisk.org/r/2425/diff/2/?file=35612#file35612line4393>
> >
> >     It would probably be a good idea to have a table somewhere with this in it. That way, when new bridge types are added, it's a matter of updating the table instead of having to seek out all the places where bridge types are translated to strings.
> >     
> >     In addition, having a table can be helpful in case there are other reasons to have to spell out the type of bridge in use.

Extracted into a val2str function.  I did the same thing to the preference/priority though that is likely to change.


- rmudgett


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


On April 8, 2013, 9:45 p.m., rmudgett wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2425/
> -----------------------------------------------------------
> 
> (Updated April 8, 2013, 9:45 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-21331
>     https://issues.asterisk.org/jira/browse/ASTERISK-21331
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> * Added bridge CLI commands:
> bridge destroy <bridge-id>
> bridge kick <bridge-id> <channel>
> bridge show all
> bridge show <bridge-id>
> bridge technology show
> bridge technology {suspend|unsuspend} <technology>
> 
> * Created global bridges container for manipulation by bridge CLI commands.
> 
> * Add ast_bridge_register() for ast_bridge_xxx_new() calls to register the bridge for access by the CLI commands.
> 
> 
> Diffs
> -----
> 
>   /team/group/bridge_construction/main/bridging.c 385038 
>   /team/group/bridge_construction/include/asterisk/bridging.h 385038 
>   /team/group/bridge_construction/main/features.c 385038 
> 
> Diff: https://reviewboard.asterisk.org/r/2425/diff/
> 
> 
> Testing
> -------
> 
> The new CLI commands work as expected.
> 
> 
> Thanks,
> 
> rmudgett
> 
>

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


More information about the asterisk-dev mailing list