]> 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-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Fri, 14 Jun 2024 17:26:17 +0000 (17:26 +0000)
commit25686a57da0c20e067b25b72c6819f8479540cda
treeff155e63c02797100904be65d88df09ddafe0d62
parent26eabed246439f8668006f049fcff7af6bd11c75
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