[Asterisk-code-review] core_local: Fix local channel parsing with slashes (asterisk[master])
N A
asteriskteam at digium.com
Tue Apr 26 15:03:58 CDT 2022
Attention is currently required from: N A, Richard Mudgett.
Hello Joshua Colp, Friendly Automation, Richard Mudgett,
I'd like you to reexamine a change. Please visit
https://gerrit.asterisk.org/c/asterisk/+/18369
to look at the new patch set (#4).
Change subject: core_local: Fix local channel parsing with slashes
......................................................................
core_local: Fix local channel parsing with slashes
Currently, trying to call a Local channel with a slash
in the extension will fail due to the parsing of characters
after such a slash as being dial modifiers. Additionally,
core_local is inconsistent and incomplete with
its parsing of Local dial strings in that sometimes it
uses the first slash and at other times it uses the last.
For instance, something like DAHDI/5 or PJSIP/device
is a perfectly usable extension in the dialplan, but Local
channels in particular prevent these from being called.
This creates inconsistent behavior for users, since using
a slash in an extension is perfectly acceptable, and using
a Goto to accomplish this works fine, but if specified
through a Local channel, the parsing prevents this.
This addresses this by consistently using the last '/' in
a dial string as the beginning of options. Additionally,
the 'z' option is reserved to do nothing, so that it can
be specified in the dial string for elegance. The 'b' option
is not used, even though it no longer exists, because it
could cause confusion.
This allows for slashes to be used in extensions, provided
the destination still has a trailing slash for options,
including the dummy 'z' option if desired.
ASTERISK-30013 #close
Change-Id: I8e85bc14072e452d0537a801aba17779569d0360
---
M main/core_local.c
1 file changed, 20 insertions(+), 7 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/69/18369/4
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18369
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I8e85bc14072e452d0537a801aba17779569d0360
Gerrit-Change-Number: 18369
Gerrit-PatchSet: 4
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Attention: N A <mail at interlinked.x10host.com>
Gerrit-Attention: Richard Mudgett <rmudgett at digium.com>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220426/584650d7/attachment.html>
More information about the asterisk-code-review
mailing list