mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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 83f1317eb4
)
This commit is contained in:
committed by
Asterisk Development Team
parent
b85c9d80ca
commit
779755527a
@@ -615,6 +615,8 @@ enum ast_sip_endpoint_identifier_type {
|
||||
AST_SIP_ENDPOINT_IDENTIFY_BY_IP = (1 << 2),
|
||||
/*! Identify based on arbitrary headers */
|
||||
AST_SIP_ENDPOINT_IDENTIFY_BY_HEADER = (1 << 3),
|
||||
/*! Identify based on request uri */
|
||||
AST_SIP_ENDPOINT_IDENTIFY_BY_REQUEST_URI = (1 << 4),
|
||||
};
|
||||
AST_VECTOR(ast_sip_identify_by_vector, enum ast_sip_endpoint_identifier_type);
|
||||
|
||||
|
Reference in New Issue
Block a user