diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2012-02-28 21:26:34 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2012-02-28 21:26:34 +0000 |
commit | d65de9c5c39bbc641adff2f9f2cd63dd1f229323 (patch) | |
tree | 731f6a30ba96f6ec7aa73b03d9ec40f9900b2323 /apps/app_rpt.c | |
parent | 764d2ccae2d14088717b7d0aab8691c0c458f9a5 (diff) |
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.
........
Merged revisions 357416 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 357421 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@357436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_rpt.c')
0 files changed, 0 insertions, 0 deletions