[asterisk-dev] [Code Review] Crash when using directed pickup applications.

rmudgett reviewboard at asterisk.org
Wed May 18 14:05:05 CDT 2011


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

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/6568071c/attachment.htm>


More information about the asterisk-dev mailing list