[Asterisk-code-review] chan_sip: Send 403 when ACL fails. (asterisk[13])
Joshua Colp
asteriskteam at digium.com
Thu Mar 26 09:09:48 CDT 2020
Joshua Colp has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14028 )
Change subject: chan_sip: Send 403 when ACL fails.
......................................................................
chan_sip: Send 403 when ACL fails.
Change-Id: I0910c79196f2b7c7e5ad6f1db95e83800ac737a2
---
M channels/chan_sip.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/28/14028/1
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3522cd9..d25b139 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -19494,6 +19494,7 @@
case AUTH_UNKNOWN_DOMAIN:
case AUTH_PEER_NOT_DYNAMIC:
case AUTH_BAD_TRANSPORT:
+ case AUTH_ACL_FAILED:
ast_log(LOG_NOTICE, "Failed to authenticate device %s for %s, code = %d\n",
sip_get_header(req, "From"), sip_methods[p->method].text, res);
response = "403 Forbidden";
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14028
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I0910c79196f2b7c7e5ad6f1db95e83800ac737a2
Gerrit-Change-Number: 14028
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200326/4bcd9030/attachment.html>
More information about the asterisk-code-review
mailing list