[asterisk-dev] [Code Review]: Support 'deaf' participants in ConfBridge

fabled reviewboard at asterisk.org
Mon Mar 12 10:19:12 CDT 2012



> On Dec. 30, 2011, 8:46 a.m., Matt Jordan wrote:
> > /trunk/apps/app_confbridge.c, lines 2092-2098
> > <https://reviewboard.asterisk.org/r/1645/diff/1/?file=22464#file22464line2092>
> >
> >     I'm not really a fan of methods that have dual purposes.  I'd prefer there to be a generic mute helper, and a generic deafen helper.
> 
> fabled wrote:
>     The function would be mostly redundant copy/paste then. Would it be worth to create a generic "feature_helper", and pass a callback function to do the feature bit twidling?
> 
> David Vossel wrote:
>     You could make this generic by passing in a enum value into the function.  The enum would represent the specific feature to enable (CONFBRIDGE_FEATURE_MUTE, CONFBRIDGE_FEATURE_UNMUTE, CONFBRIDGE_FEATURE_DEAF, etc...)  Then you could make a switch case to handle all the enum values.
>

The enum/switch sounds good. Will fix accordingly.


- fabled


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


On March 12, 2012, 10:07 a.m., fabled wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1645/
> -----------------------------------------------------------
> 
> (Updated March 12, 2012, 10:07 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Support 'deaf' participants in ConfBridge
> 
> 
> This addresses bug ASTERISK-19109.
>     https://issues.asterisk.org/jira/browse/ASTERISK-19109
> 
> 
> Diffs
> -----
> 
>   /trunk/CHANGES 358730 
>   /trunk/apps/app_confbridge.c 358730 
>   /trunk/apps/confbridge/conf_config_parser.c 358730 
>   /trunk/apps/confbridge/include/confbridge.h 358730 
>   /trunk/bridges/bridge_multiplexed.c 358730 
>   /trunk/bridges/bridge_simple.c 358730 
>   /trunk/bridges/bridge_softmix.c 358730 
>   /trunk/configs/confbridge.conf.sample 358730 
>   /trunk/include/asterisk/bridging_features.h 358730 
>   /trunk/include/asterisk/bridging_technology.h 358730 
>   /trunk/main/bridging.c 358730 
> 
> Diff: https://reviewboard.asterisk.org/r/1645/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> fabled
> 
>

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


More information about the asterisk-dev mailing list