From 40722149d72f9f87049b05ec8305b0bb29f8c8f7 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Wed, 13 Sep 2017 15:23:54 -0600 Subject: 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 --- configs/samples/pjsip.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configs') diff --git a/configs/samples/pjsip.conf.sample b/configs/samples/pjsip.conf.sample index 1e1029b20..9a2592bed 100644 --- a/configs/samples/pjsip.conf.sample +++ b/configs/samples/pjsip.conf.sample @@ -1147,7 +1147,7 @@ ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_outbound_publish -;======================OUTBOUND_PUBLISHEN SECTION OPTIONS===================== +;======================OUTBOUND_PUBLISH SECTION OPTIONS===================== ; See https://wiki.asterisk.org/wiki/display/AST/Publishing+Extension+State ; for more information. ;[outbound-publish] -- cgit v1.2.3