]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core_local: Fix local channel parsing with slashes.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 9 Aug 2023 22:57:41 +0000 (22:57 +0000)
committerAsterisk Development Team <asteriskteam@digium.com>
Fri, 12 Jan 2024 18:29:19 +0000 (18:29 +0000)
commitb47a403b801b82001738f7eccf18f98ca22836d2
treed1c12a70efe269b9794ac5f848e8b08553cefee2
parent3b70dfcced7c4347440d9cbd29a9c8d277e80e31
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 fixes this by explicitly parsing options from the
last slash in the extension, rather than the first one,
which doesn't cause an issue for extensions with slashes.

ASTERISK-30013 #close

Resolves: #248
(cherry picked from commit 2191a0d33fce2a595e258e7e2ba561bd18ee0ff3)
main/core_local.c