]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_endpoint_identifier_ip: Endpoint identifier request URI
authorSperl Viktor <viktike32@gmail.com>
Thu, 28 Mar 2024 13:20:26 +0000 (14:20 +0100)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:56:11 +0000 (13:56 +0000)
commitbd3c3bf82106283b53eb8e56907ec9a26fb1789a
tree095eb225ae09b52dba261a4c3f348f7402887c7d
parent98aa70cd382105da732b9404609791dec6f2e43b
res_pjsip_endpoint_identifier_ip: Endpoint identifier request URI

Add ability to match against PJSIP request URI.

UserNote: this new feature let users match endpoints based on the
indound SIP requests' URI. To do so, add 'request_uri' to the
endpoint's 'identify_by' option. The 'match_request_uri' option of
the identify can be an exact match for the entire request uri, or a
regular expression (between slashes). It's quite similar to the
header identifer.

Fixes: #599
(cherry picked from commit 136bd5c892b5c44ca5f4f6908e957404a840d60b)
configs/samples/pjsip.conf.sample
contrib/ast-db-manage/config/versions/cf150a175fd3_add_match_request_uri_attribute_to_.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip/pjsip_config.xml
res/res_pjsip/pjsip_configuration.c
res/res_pjsip_endpoint_identifier_ip.c