chan_sip: Send 403 when ACL fails.
Change-Id: I0910c79196f2b7c7e5ad6f1db95e83800ac737a2
This commit is contained in:
parent
99869810a1
commit
ebe7749127
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue