diff options
author | Mark Spencer <markster@digium.com> | 2004-06-18 03:59:19 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-06-18 03:59:19 +0000 |
commit | 19d5ae6e8dffb4fdc46e4c29edc67d7ead595bb4 (patch) | |
tree | dbc31628a48879acd309e724d27a15cbee8ac6d9 /channels | |
parent | 3932d756d47390b8aad53a07d824350979aa0295 (diff) |
Send 403 when authentication fails on a call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 06c51735b..e11f5acfb 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6420,6 +6420,10 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc if (res) { if (res < 0) { ast_log(LOG_NOTICE, "Failed to authenticate user %s\n", get_header(req, "From")); + if (ignore) + transmit_response(p, "403 Forbidden", req); + else + transmit_response_reliable(p, "403 Forbidden", req, 1); p->needdestroy = 1; } return 0; |