mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
res_pjsip_endpoint_identifier_ip: Add endpoint identifier transport address.
Add a new identify_by option to res_pjsip_endpoint_identifier_ip called 'transport' this matches endpoints based on the bound ip address (local) instead of the 'ip' option, which matches on the source ip address (remote). UserNote: set identify_by=transport for the pjsip endpoint. Then use the existing 'match' option and the new 'transport' option of the identify. Fixes: #672
This commit is contained in:
@@ -617,6 +617,8 @@ enum ast_sip_endpoint_identifier_type {
|
||||
AST_SIP_ENDPOINT_IDENTIFY_BY_HEADER = (1 << 3),
|
||||
/*! Identify based on request uri */
|
||||
AST_SIP_ENDPOINT_IDENTIFY_BY_REQUEST_URI = (1 << 4),
|
||||
/*! Identify based on bound (local) IP address */
|
||||
AST_SIP_ENDPOINT_IDENTIFY_BY_TRANSPORT = (1 << 5),
|
||||
};
|
||||
AST_VECTOR(ast_sip_identify_by_vector, enum ast_sip_endpoint_identifier_type);
|
||||
|
||||
|
Reference in New Issue
Block a user