[asterisk-dev] [Code Review] Convert app_confbridge to use the new config options API

Mark Michelson reviewboard at asterisk.org
Tue Jul 10 15:04:12 CDT 2012


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



/trunk/apps/confbridge/conf_config_parser.c
<https://reviewboard.asterisk.org/r/2024/#comment12631>

    Red Blawb



/trunk/apps/confbridge/conf_config_parser.c
<https://reviewboard.asterisk.org/r/2024/#comment12639>

    You've got yourself a typo here on line 1279. The option is "end_marked"



/trunk/apps/confbridge/conf_config_parser.c
<https://reviewboard.asterisk.org/r/2024/#comment12640>

    You've repeated the "dtmf_passthrough" option.


- Mark


On July 9, 2012, 12:41 p.m., Terry Wilson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2024/
> -----------------------------------------------------------
> 
> (Updated July 9, 2012, 12:41 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> This converts the confbridge app to use the new ACO API. A couple of small additions were added to the ACO API to accomodate app_confbridge:
> 1) A default handler was added for storing options in character arrays of a given length
> 2) A NoOp default handler was added so that that type= fields that are used for matching a specific type can be ignored and not cause a parsing failure
> 3) The aco_process_var() function was added to allow processing an individual option/value and applying it to an object. app_confbridge uses this to create user/bridge profiles with the CONFBRIDGE dialplan function.
> 
> The only behavior change that I am aware of is that the announce_only_user option (which defaulted to "yes" and used ast_true() with negative logic to clear the USER_OPT_NOONLYPERSON flag) now defaults to "yes" and evaluates using ast_false(). So basically "true" used to be default or ast_true(var->value). Now it is default or !ast_false(var->value) which is more in keeping with "yes" being the default anyway.
> 
> 
> Diffs
> -----
> 
>   /trunk/apps/confbridge/conf_config_parser.c 369815 
>   /trunk/apps/confbridge/include/confbridge.h 369815 
>   /trunk/include/asterisk/config_options.h 369815 
>   /trunk/main/config_options.c 369815 
> 
> Diff: https://reviewboard.asterisk.org/r/2024/diff
> 
> 
> Testing
> -------
> 
> Created several users/bridges and verified that settings looked right with the CLI confbridge show profile/menu commands. Ran dialplan with some CONFBRIDGE() calls to verify that settings changed appropriately and that templates appeared to work.
> 
> 
> Thanks,
> 
> Terry
> 
>

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


More information about the asterisk-dev mailing list