[Asterisk-code-review] app_stack: Print proper exit location for PBXless channels. (asterisk[master])

N A asteriskteam at digium.com
Sat Oct 1 14:53:37 CDT 2022


N A has uploaded a new patch set (#2). ( https://gerrit.asterisk.org/c/asterisk/+/19402 )

Change subject: app_stack: Print proper exit location for PBXless channels.
......................................................................

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
---
M apps/app_stack.c
1 file changed, 63 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/02/19402/2
-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/19402
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I1d42a99c9aa9e3708d32718863175158a894e414
Gerrit-Change-Number: 19402
Gerrit-PatchSet: 2
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-CC: Friendly Automation
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20221001/14456401/attachment-0001.html>


More information about the asterisk-code-review mailing list