summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2016-10-06 02:29:21 -0400
committerRichard Mudgett <rmudgett@digium.com>2017-12-15 12:43:38 -0600
commit6f8b34f9c115ac3096c6be98ec9bc7b84bac1bb2 (patch)
tree71089f9df5cdcc4411dbb94f7c63dced2d4b26ef /channels
parenteb23919e69a309d44e86d529e094671fe55da6ca (diff)
chan_sip: Add security event for calls to invalid extension.
Log a message to security events when an INVITE is received to an invalid extension. ASTERISK-25869 #close Change-Id: I0da40cd7c2206c825c2f0d4e172275df331fcc8f
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
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: