[asterisk-dev] [Code Review] Fix *8 directed pickup locks system while sucessful pickupsound plays out.

rmudgett reviewboard at asterisk.org
Thu May 26 12:30:21 CDT 2011


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

Ship it!


Looks like a good solution.  My only concern is that since there is a channel variable involved, someone's dialplan may be perverse enough to break.

How is the BRIDGE_PLAY_SOUND channel variable normally supposed to be used?

- rmudgett


On 2011-05-26 07:14:11, Alec Davis wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1232/
> -----------------------------------------------------------
> 
> (Updated 2011-05-26 07:14:11)
> 
> 
> Review request for Asterisk Developers and rmudgett.
> 
> 
> Summary
> -------
> 
> https://reviewboard.asterisk.org/r/1185/ finished off with the target channel requiring to be locked for the duration of the pickupsound, otherwise there was a clash between 2 threads trying to write data.
> 
> This simple change keeps the playout of the sucessful pickupsound in the same thread as the bridge, now played out by bridge_play_sounds().
> 
> 
> This addresses bug 18654.
>     https://issues.asterisk.org/view.php?id=18654
> 
> 
> Diffs
> -----
> 
>   trunk/main/features.c 320797 
> 
> Diff: https://reviewboard.asterisk.org/r/1232/diff
> 
> 
> Testing
> -------
> 
> yes, simple pickups with SIP and DAHDI, but to exaggerate the issue for testing purposes set pickupsound=tt_monkeys set in features.conf, and checking with 'core show locks' that no locks exist during playout. They do prior to this change.
> 
> 
> Thanks,
> 
> Alec
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110526/7e2781e7/attachment.htm>


More information about the asterisk-dev mailing list