]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip: New function PJSIP_PARSE_URI to parse URI and return part of URI
authorAlexei Gradinari <alex2grad@gmail.com>
Tue, 13 Nov 2018 15:28:28 +0000 (10:28 -0500)
committerGeorge Joseph <gjoseph@digium.com>
Sun, 18 Nov 2018 20:27:15 +0000 (13:27 -0700)
commite6005f122705e7ec9729b43e2ffcdb05fded25de
tree2e08d0d221e6eb651bdbee5a50e9a55361885263
parent6e1471c0b29970f7dce23b12fcaefa4f66e95bf6
pjsip: New function PJSIP_PARSE_URI to parse URI and return part of URI

New dialplan function PJSIP_PARSE_URI added to parse an URI and return
a specified part of the URI.

This is useful when need to get part of the URI instead of cutting it
using a CUT function.

For example to get 'user' part of Remote URI
${PJSIP_PARSE_URI(${CHANNEL(pjsip,remote_uri)},user)}

ASTERISK-28144 #close

Change-Id: I5d828fb87f6803b6c1152bb7b44835f027bb9d5a
CHANGES
channels/chan_pjsip.c
channels/pjsip/dialplan_functions.c
channels/pjsip/include/dialplan_functions.h