]> 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:14 +0000 (17:26 +0000)
commit5068cc814ffc14bdad39e6ecdbfeae92c7b797bf
treeb84c8ee48c2016ce4d389c62c185dd05210b37a1
parent87278c087a063e4cfb348d756141aabf816fc13d
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