]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_stack: Print proper exit location for PBXless channels.
authorNaveen Albert <asterisk@phreaknet.org>
Sat, 1 Oct 2022 19:49:20 +0000 (19:49 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 2 Nov 2022 18:48:43 +0000 (13:48 -0500)
commit617dad4cba1513dddce87b8e95a61415fb587cf1
treea4f4a759eb8aaee4e0d0d7cb33e5641548f447de
parent1b5b4cf6810e742f39ba3d0650d50a9dfbf2633e
app_stack: Print proper exit location for PBXless channels.

When gosub is executed on channels without a PBX, the context,
extension, and priority are initialized to the channel driver's
default location for that endpoint. As a result, the last Return
will restore this location and the Gosub logs will print out bogus
information about our exit point.

To fix this, on channels that don't have a PBX, the execution
location is left intact on the last return if there are no
further stack frames left. This allows the correct location
to be printed out to the user, rather than the bogus default
context.

ASTERISK-30076 #close

Change-Id: I1d42a99c9aa9e3708d32718863175158a894e414
(cherry picked from commit 12d18b0a40381eb90145e352bf144a71f8dd2555)
apps/app_stack.c