]> 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)
committerSperl Viktor <viktike32@gmail.com>
Thu, 28 Mar 2024 15:04:57 +0000 (15:04 +0000)
commitac297d15f879816947195c5acb28b12bad9306a6
tree4f18c71ec85516c61537ec2b0683f51ab925ff98
parent63aa08fa0b3e30e8d2f1406936c740bf5a5bf539
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
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