diff options
author | Joshua Colp <jcolp@digium.com> | 2017-10-24 15:33:57 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2017-10-25 18:13:26 +0000 |
commit | 7385d1e017e562afe64431606e857e704f86a16d (patch) | |
tree | e73d8cc4691607c4ba43a3012710cddea60d1158 /include | |
parent | e7d8b4ebe7d2f0cd9d83fdd44613a8d3ac1b7315 (diff) |
res_pjsip: Add 'ip' as a valid option to 'identify_by' on endpoint.
When the identify_by option on an endpoint is set to ip it will
only be identified using the res_pjsip_endpoint_identifier_ip module.
This ensures that it is not mistakenly matched using the username of
the From header. To ensure behavior has not changed the default has
been changed to "username,ip" for the identify_by option.
ASTERISK-27206
Change-Id: I2170b86a7f7e221b4f00bf14aa1ef1ac5b050bbd
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/res_pjsip.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h index ac1267d4a..931757f2a 100644 --- a/include/asterisk/res_pjsip.h +++ b/include/asterisk/res_pjsip.h @@ -435,6 +435,8 @@ enum ast_sip_endpoint_identifier_type { AST_SIP_ENDPOINT_IDENTIFY_BY_USERNAME = (1 << 0), /*! Identify based on user name in Auth header first, then From header */ AST_SIP_ENDPOINT_IDENTIFY_BY_AUTH_USERNAME = (1 << 1), + /*! Identify based on source IP address */ + AST_SIP_ENDPOINT_IDENTIFY_BY_IP = (1 << 2), }; AST_VECTOR(ast_sip_identify_by_vector, enum ast_sip_endpoint_identifier_type); |