summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-12-18 09:15:19 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-12-18 09:15:19 -0600
commitf2d23e86d71504f7e2c39104a474efe5c9a7e251 (patch)
tree2fc090346dd1456b0c88239c2ff9330394e5d02c
parent5346c290e0d4a33e219f9241d74fbb40b640c607 (diff)
parent6f8b34f9c115ac3096c6be98ec9bc7b84bac1bb2 (diff)
Merge "chan_sip: Add security event for calls to invalid extension."
-rw-r--r--CHANGES5
-rw-r--r--channels/chan_sip.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index f367f46cf..bd1ca67a7 100644
--- a/CHANGES
+++ b/CHANGES
@@ -50,6 +50,11 @@ Core
Asterisk is compiled with the LOW_MEMORY compile time option enabled because
the cache code does not exist.
+chan_sip
+------------------
+ * Calls to invalid extensions are now reported as an ACL failure security event
+ "no_extension_match".
+
res_rtp_asterisk
------------------
* The X.509 certificate used for DTLS negotation can now be automatically
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2d20442d0..e54997b0d 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -26654,6 +26654,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, str
ast_log(LOG_NOTICE, "Call from '%s' (%s) to extension"
" '%s' rejected because extension not found in context '%s'.\n",
S_OR(p->username, p->peername), ast_sockaddr_stringify(&p->recv), decoded_exten, p->context);
+ sip_report_failed_acl(p, "no_extension_match");
}
break;
case SIP_GET_DEST_REFUSED: