[asterisk-dev] [Code Review] Allow non-normal execution routines to be able to run on hungup channels.

rmudgett reviewboard at asterisk.org
Mon Jun 11 11:29:02 CDT 2012


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



/trunk/apps/app_stack.c
<https://reviewboard.asterisk.org/r/1984/#comment12163>

    The Fred application will be removed.  It is for debugging purposes only.


- rmudgett


On June 11, 2012, 11:25 a.m., rmudgett wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1984/
> -----------------------------------------------------------
> 
> (Updated June 11, 2012, 11:25 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> * Make non-normal dialplan execution routines be able to run on a hung up channel.  This is preparation work for hangup handler routines.
> 
> * Fixes non-normal execution routines like connected line interception and predial leaving the dialplan execution stack unbalanced.  Errors like missing Return statements, popping too many stack frames using StackPop, or an application returning non-zero could leave the dialplan stack unbalanced.
> 
> * Make Hangup set a softhangup flag.  The Hangup application used to just return -1 to cause normal dialplan execution to hangup a channel.  For the non-normal execution routines like predial and connected-line interception routines, the hangup request would be ignored.
> 
> 
> Diffs
> -----
> 
>   /trunk/apps/app_dial.c 368754 
>   /trunk/apps/app_followme.c 368754 
>   /trunk/apps/app_queue.c 368754 
>   /trunk/apps/app_stack.c 368754 
>   /trunk/include/asterisk/app.h 368754 
>   /trunk/main/app.c 368754 
>   /trunk/main/ccss.c 368754 
>   /trunk/main/channel.c 368754 
>   /trunk/main/pbx.c 368754 
> 
> Diff: https://reviewboard.asterisk.org/r/1984/diff
> 
> 
> Testing
> -------
> 
> * Used the Fred application to test running a non-normal execution routine while a channel is hung up.  (The Fred routine will be removed since it is only for testing.)
> * Checked StackPop being used too many times on non-normal routines.
> * Checked forgetting Return on a non-normal routine.
> * Checked using Hangup in a non-normal routine causes the channel to be hung up.
> 
> 
> Thanks,
> 
> rmudgett
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120611/d3f9af9c/attachment-0001.htm>


More information about the asterisk-dev mailing list