[asterisk-dev] [Code Review] Crash when using directed pickup applications.
Alec Davis
reviewboard at asterisk.org
Wed May 18 16:08:14 CDT 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1221/#review3572
-----------------------------------------------------------
/branches/1.8/main/features.c
<https://reviewboard.asterisk.org/r/1221/#comment7250>
The test if pickupsounds are configured should still be present.
- Alec
On 2011-05-18 14:05:05, rmudgett wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1221/
> -----------------------------------------------------------
>
> (Updated 2011-05-18 14:05:05)
>
>
> Review request for Asterisk Developers and Alec Davis.
>
>
> Summary
> -------
>
> The directed pickup applications can cause a crash if the pickup was successful because the dialplan keeps executing.
>
> This patch does the following:
>
> * Completes the channel masquerade on a successful pickup before the application returns. The channel is now guaranteed a zombie and must not continue executing the dialplan.
>
> * Changes the return value of the directed pickup applications to return zero if the pickup failed and nonzero(-1) if the pickup succeeded.
>
> * Made some code optimizations that no longer require re-checking the pickup channel to see if it is still available to pickup.
>
>
> This addresses bug 19310.
> https://issues.asterisk.org/view.php?id=19310
>
>
> Diffs
> -----
>
> /branches/1.8/apps/app_directed_pickup.c 319526
> /branches/1.8/main/features.c 319526
>
> Diff: https://reviewboard.asterisk.org/r/1221/diff
>
>
> Testing
> -------
>
> Did some quick tests to verify that pickup still works.
>
>
> Thanks,
>
> rmudgett
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110518/416ddd24/attachment-0001.htm>
More information about the asterisk-dev
mailing list