[Asterisk-code-review] chan_sip: Send 403 when ACL fails. (asterisk[13])

Friendly Automation asteriskteam at digium.com
Tue Mar 31 10:05:34 CDT 2020


Friendly Automation has submitted this change. ( 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(-)

Approvals:
  George Joseph: Looks good to me, approved; Verified
  Friendly Automation: Approved for Submit
  Kevin Harwell: Looks good to me, but someone else must approve



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-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.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/5de54840/attachment.html>


More information about the asterisk-code-review mailing list