From: Joshua C. Colp Date: Thu, 26 Mar 2020 13:49:54 +0000 (-0300) Subject: chan_sip: Send 403 when ACL fails. X-Git-Tag: 13.33.0-rc1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=305227dd38b93ae7c43e125cdaae487078506121;p=thirdparty%2Fasterisk.git chan_sip: Send 403 when ACL fails. Change-Id: I0910c79196f2b7c7e5ad6f1db95e83800ac737a2 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3522cd9ed1..d25b13959e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -19494,6 +19494,7 @@ static void send_check_user_failure_response(struct sip_pvt *p, struct sip_reque 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";