]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip: Add PJSIP_PARSE_URI_FROM dialplan function.
authorSean Bright <sean@seanbright.com>
Sun, 2 Jun 2024 16:51:07 +0000 (12:51 -0400)
committerSean Bright <sean@seanbright.com>
Fri, 14 Jun 2024 17:26:12 +0000 (17:26 +0000)
commitceebc903ff262d2e37b38b76ed2683e2bb4010d4
tree9fa349000ed6bff04c0cf57e61cc7d4b1ca49707
parent1ce5731c40d73f6426a7c8083148b4f71120c456
pjsip: Add PJSIP_PARSE_URI_FROM dialplan function.

Various SIP headers permit a URI to be prefaced with a `display-name`
production that can include characters (like commas and parentheses)
that are problematic for Asterisk's dialplan parser and, specifically
in the case of this patch, the PJSIP_PARSE_URI function.

This patch introduces a new function - `PJSIP_PARSE_URI_FROM` - that
behaves identically to `PJSIP_PARSE_URI` except that the first
argument is now a variable name and not a literal URI.

Fixes #756
channels/chan_pjsip.c
channels/pjsip/dialplan_functions.c
channels/pjsip/dialplan_functions_doc.xml