]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Correctly reset the dialplan priority.
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 28 Feb 2012 21:19:39 +0000 (21:19 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 28 Feb 2012 21:19:39 +0000 (21:19 +0000)
commite289e9caf993dc0d90652d730d574df464c2e1f4
tree6a721d0e599bbab93987c5641a56681d6b63da96
parentec57a801695486b85cb66a2a473019b1b711207d
Correctly reset the dialplan priority.

When the stack frame is allocated, we save the address to which we should
return, when the Gosub returns.  However, if we just want to restore the
priority, then we need to subtract 1 before setting it.  Otherwise, when
a Gosub goes to a nonexistent address, it will skip a priority in the
dialplan.  This is because when we return from an application, the PBX
increments the priority for us.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@357416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_stack.c