]> 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 15:48:53 +0000 (10:48 -0500)
commit12d18b0a40381eb90145e352bf144a71f8dd2555
tree4fb96cb7243ab16d10559d0be5c87d28d49891cd
parentb6670e24406ada59147c22a79cc3af545ce8f0f8
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
apps/app_stack.c