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

David Vossel reviewboard at asterisk.org
Tue Jan 3 16:29:10 CST 2012


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



/trunk/main/bridging.c
<https://reviewboard.asterisk.org/r/1645/#comment9420>

    This will only work if the write format is set to "SLINEAR", otherwise strange things may occur.
    
    Your best bet here is to first, detect if the write format on the channel is some form of signed linear.  If it is, then create a frame with the correct number of samples for the given length in time of the incoming frame (whatever format it is).
    
    so.. say the write format is slin32... and length of incoming frame is 40ms... the number of samples needed would be. 32000/(1000/40) = 1280 samples for 40ms of 32khz signed linear.
    
    The ast_codec_get_samples(), ast_format_rate(), and ast_format_is_slinear() functions will be of use here.
    
    If the channel's write format is not some form of signed linear, then just return a NULL frame instead of the audio as that is the best we can hope to do.



/trunk/main/bridging.c
<https://reviewboard.asterisk.org/r/1645/#comment9369>

    Is a short always 16 bits?  Use of int_16 might bet better here.


- David


On Jan. 3, 2012, 8:36 a.m., fabled wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1645/
> -----------------------------------------------------------
> 
> (Updated Jan. 3, 2012, 8:36 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 349410 
>   /trunk/apps/app_confbridge.c 349410 
>   /trunk/apps/confbridge/conf_config_parser.c 349410 
>   /trunk/apps/confbridge/include/confbridge.h 349410 
>   /trunk/bridges/bridge_multiplexed.c 349410 
>   /trunk/bridges/bridge_simple.c 349410 
>   /trunk/bridges/bridge_softmix.c 349410 
>   /trunk/configs/confbridge.conf.sample 349410 
>   /trunk/include/asterisk/bridging_features.h 349410 
>   /trunk/include/asterisk/bridging_technology.h 349410 
>   /trunk/main/bridging.c 349410 
> 
> 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/20120103/7ba88bc4/attachment-0001.htm>


More information about the asterisk-dev mailing list