summaryrefslogtreecommitdiff
path: root/res/res_pjsip/location.c
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 13:08:38 -0600
commit63900374fa310d7df1c421f6f01b5509e99b43d5 (patch)
treed6a5a71af9783bb208b68701024e334e11efa13f /res/res_pjsip/location.c
parent1aef4fe9df48c0fbbd344f1d2a03447d063c9ddb (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/location.c')
-rw-r--r--res/res_pjsip/location.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip/location.c b/res/res_pjsip/location.c
index ddde5c47e..66fc85c95 100644
--- a/res/res_pjsip/location.c
+++ b/res/res_pjsip/location.c
@@ -620,7 +620,7 @@ static int permanent_uri_handler(const struct aco_option *opt, struct ast_variab
}
if (ast_sip_validate_uri_length(contact_uri)) {
- ast_log(LOG_ERROR, "Contact uri or hostname length exceeds pjproject limit: %s\n", contact_uri);
+ ast_log(LOG_ERROR, "Contact uri or hostname length exceeds pjproject limit or is not a sip(s) uri: %s\n", contact_uri);
return -1;
}