[Asterisk-code-review] chan sip: Add security event for calls to invalid extension. (asterisk[15])
Corey Farrell
asteriskteam at digium.com
Thu Dec 14 15:48:51 CST 2017
Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/7591
Change subject: chan_sip: Add security event for calls to invalid extension.
......................................................................
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
---
M channels/chan_sip.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/91/7591/1
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 4bae39d..b057300 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -26460,6 +26460,7 @@
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:
--
To view, visit https://gerrit.asterisk.org/7591
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0da40cd7c2206c825c2f0d4e172275df331fcc8f
Gerrit-Change-Number: 7591
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171214/a590cbf0/attachment.html>
More information about the asterisk-code-review
mailing list