chan_sip: Send 403 when ACL fails.

Change-Id: I0910c79196f2b7c7e5ad6f1db95e83800ac737a2
This commit is contained in:
Joshua C. Colp 2020-03-26 10:49:54 -03:00 committed by Friendly Automation
parent 99869810a1
commit ebe7749127
1 changed files with 1 additions and 0 deletions

View File

@ -19636,6 +19636,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";