]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 11 Jul 2024 13:22:18 +0000 (13:22 +0000)
commitd18159a008952794ec37effd06eccbd013ad3d7a
tree8a5df37feebcc9d2d035f65fa6bff7693dcc9327
parent9afc995824567751c55d1e516a3d85a6def22bda
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

(cherry picked from commit 5068cc814ffc14bdad39e6ecdbfeae92c7b797bf)
channels/chan_pjsip.c
channels/pjsip/dialplan_functions.c
channels/pjsip/dialplan_functions_doc.xml