[Asterisk-code-review] chan_sip: Send 403 when ACL fails. (asterisk[17])
Joshua Colp
asteriskteam at digium.com
Tue Mar 31 10:16:12 CDT 2020
Joshua Colp has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/14047 )
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(-)
Approvals:
Kevin Harwell: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Joshua Colp: Approved for Submit
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 1ddd789..fb3581e 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -19636,6 +19636,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/+/14047
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 17
Gerrit-Change-Id: I0910c79196f2b7c7e5ad6f1db95e83800ac737a2
Gerrit-Change-Number: 14047
Gerrit-PatchSet: 2
Gerrit-Owner: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200331/9ae647f4/attachment.html>
More information about the asterisk-code-review
mailing list