[asterisk-dev] [Code Review] Convert res_musiconhold to use generic timing interface

Russell Bryant russell at digium.com
Fri Jul 30 23:08:45 CDT 2010


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



/trunk/res/res_musiconhold.c
<https://reviewboard.asterisk.org/r/826/#comment5536>

    ast_waitfor_n_fd() is not guaranteed to only return in the case that input is available on the timer fd.  poll() might get interrupted and return -1 with errno set to EINTR, for example.  Before ast_timer_ack() is called and this code continues, it needs to ensure that it's actually time for the timer to go off.



/trunk/res/res_musiconhold.c
<https://reviewboard.asterisk.org/r/826/#comment5537>

    Hrm, I know you only moved this, but for the record, I think this code is wrong if the MOH source was providing non 8kHz audio.


- Russell


On 2010-07-30 16:26:51, Sean Bright wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/826/
> -----------------------------------------------------------
> 
> (Updated 2010-07-30 16:26:51)
> 
> 
> Review request for Asterisk Developers and Russell Bryant.
> 
> 
> Summary
> -------
> 
> This patch intends to remove res_musiconhold's dependency on DAHDI.  I feel like the conversion was a bit naive, but it works here.
> 
> 
> This addresses bug 17726.
>     https://issues.asterisk.org/view.php?id=17726
> 
> 
> Diffs
> -----
> 
>   /trunk/res/res_musiconhold.c 280623 
> 
> Diff: https://reviewboard.asterisk.org/r/826/diff
> 
> 
> Testing
> -------
> 
> Compiles and I can send a caller into MusicOnHold() and everything sounds fine.  Only tested with res_timing_dahdi.so, however.
> 
> 
> Thanks,
> 
> Sean
> 
>




More information about the asterisk-dev mailing list