[asterisk-dev] [Code Review] 3424: mixmonitor: Add option to enable a periodic beep

Russell Bryant reviewboard at asterisk.org
Fri Apr 11 20:26:56 CDT 2014



> On April 10, 2014, 4:21 p.m., Corey Farrell wrote:
> > /trunk/apps/app_mixmonitor.c, line 1070
> > <https://reviewboard.asterisk.org/r/3424/diff/2/?file=57155#file57155line1070>
> >
> >     Mark's suggestion to use ast_custom_function_find made me think about module references.  We don't keep a reference to func_periodic_hook for the channels that have hooks.  I missed this in the original review, I guess I expected the channel's datastore and/or the audiohook to reference the module, but they don't appear to.  Not sure if you want to add the fix to this review or if we need to do it separate.
> 
> Russell Bryant wrote:
>     Valid point, though I think it's a logically separate change from this, so I'll do it separately.

Fixed in revision 412279.


- Russell


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


On April 8, 2014, 7:49 p.m., Russell Bryant wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3424/
> -----------------------------------------------------------
> 
> (Updated April 8, 2014, 7:49 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> Add an option to enable a periodic beep to be played into a call if it
> is being recorded.  If enabled, it uses the PERIODIC_HOOK() function
> internally to play the 'beep' prompt into the call at a specified
> interval.
> 
> 
> Diffs
> -----
> 
>   /trunk/main/app.c 412023 
>   /trunk/include/asterisk/app.h 412023 
>   /trunk/funcs/func_periodic_hook.c 412023 
>   /trunk/apps/app_mixmonitor.c 412023 
>   /trunk/CHANGES 412023 
> 
> Diff: https://reviewboard.asterisk.org/r/3424/diff/
> 
> 
> Testing
> -------
> 
> exten => 103,1,Answer()
>     same => n,MixMonitor(test.gsm,B(5))
>     same => n,MusicOnHold()
> 
> exten => 104,1,Answer()
>     same => n,MixMonitor(test.gsm,B)
>     same => n,MusicOnHold()
> 
> exten => 105,1,Answer()
>     same => n,MixMonitor(test.gsm,B(3))
>     same => n,StartMusicOnHold()
>     same => n,Wait(15)
>     same => n,StopMusicOnHold()
>     same => n,StopMixMonitor()
>     same => n,Wait(5)
>     same => n,Hangup()
> 
> 
> Thanks,
> 
> Russell Bryant
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140412/7b4fa742/attachment.html>


More information about the asterisk-dev mailing list