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

David Vossel reviewboard at asterisk.org
Fri Dec 30 11:27:01 CST 2011



> 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?

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.


- David


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


On Dec. 30, 2011, 8:44 a.m., fabled wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1645/
> -----------------------------------------------------------
> 
> (Updated Dec. 30, 2011, 8:44 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/apps/app_confbridge.c 349196 
>   /trunk/apps/confbridge/conf_config_parser.c 349196 
>   /trunk/apps/confbridge/include/confbridge.h 349196 
>   /trunk/bridges/bridge_softmix.c 349196 
>   /trunk/include/asterisk/bridging_features.h 349196 
> 
> 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/20111230/0ce175e9/attachment.htm>


More information about the asterisk-dev mailing list