summaryrefslogtreecommitdiff
path: root/res/res_pjsip/include/res_pjsip_private.h
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-09-13 15:23:54 -0600
committerGeorge Joseph <gjoseph@digium.com>2017-09-14 14:18:26 -0500
commit40722149d72f9f87049b05ec8305b0bb29f8c8f7 (patch)
treeb98c9c39216e0860cbd493f9b6c2b482be3d63d5 /res/res_pjsip/include/res_pjsip_private.h
parent1b0caaeafe093a661e1ea3cec4640597424f6fce (diff)
res_pjsip: Filter out non SIP(S) requests
Incoming requests with non sip(s) URIs in the Request, To, From or Contact URIs are now rejected with PJSIP_SC_UNSUPPORTED_URI_SCHEME (416). This is performed in pjsip_message_filter (formerly pjsip_message_ip_updater) and is done at pjproject's "TRANSPORT" layer before a request can even reach the distributor. URIs read by res_pjsip_outbound_publish from pjsip.conf are now also checked for both length and sip(s) scheme. Those URIs read by outbound registration and aor were already being checked for scheme but their error messages needed to be updated to include scheme failure as well as length failure. Change-Id: Ibb2f9f1d2dc7549da562af4cbd9156c44ffdd460
Diffstat (limited to 'res/res_pjsip/include/res_pjsip_private.h')
-rw-r--r--res/res_pjsip/include/res_pjsip_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_pjsip/include/res_pjsip_private.h b/res/res_pjsip/include/res_pjsip_private.h
index 2969f0e40..9fd7aed97 100644
--- a/res/res_pjsip/include/res_pjsip_private.h
+++ b/res/res_pjsip/include/res_pjsip_private.h
@@ -212,7 +212,7 @@ int ast_res_pjsip_init_options_handling(int reload);
* \retval 0 on success
* \retval other on failure
*/
-int ast_res_pjsip_init_message_ip_updater(void);
+int ast_res_pjsip_init_message_filter(void);
/*!
* \internal
@@ -269,7 +269,7 @@ void ast_res_pjsip_cleanup_options_handling(void);
* \internal
* \brief Clean up res_pjsip message ip updating handling
*/
-void ast_res_pjsip_cleanup_message_ip_updater(void);
+void ast_res_pjsip_cleanup_message_filter(void);
/*!
* \internal