summaryrefslogtreecommitdiff
path: root/res/res_sip/config_auth.c
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2013-07-02 17:06:06 +0000
committerKevin Harwell <kharwell@digium.com>2013-07-02 17:06:06 +0000
commita25a630659c49e5e5cddacdaa06a0bd323f7c9a1 (patch)
treeeed4d9cfab14942e856cafa3e654a238d9d73487 /res/res_sip/config_auth.c
parentde206baa99f0e72129f036f1d8258f802367cb58 (diff)
New SIP Channel driver: Always Auth Reject
If no matching endpoint is found for the incoming request Asterisk will respond with a 401 Unauthorized (rejecting the request), but will first challenge if no authorization creditials are given. Changes also included moving ACL options into a new global 'security' configuration section in res_sip.conf. (closes issue ASTERISK-21433) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/2554/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_sip/config_auth.c')
-rw-r--r--res/res_sip/config_auth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_sip/config_auth.c b/res/res_sip/config_auth.c
index 47ff42deb..bffb96c39 100644
--- a/res/res_sip/config_auth.c
+++ b/res/res_sip/config_auth.c
@@ -87,6 +87,8 @@ static int auth_apply(const struct ast_sorcery *sorcery, void *obj)
res = -1;
}
break;
+ case AST_SIP_AUTH_TYPE_ARTIFICIAL:
+ break;
}
return res;