diff options
author | Kevin Harwell <kharwell@digium.com> | 2013-07-02 17:06:06 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2013-07-02 17:06:06 +0000 |
commit | a25a630659c49e5e5cddacdaa06a0bd323f7c9a1 (patch) | |
tree | eed4d9cfab14942e856cafa3e654a238d9d73487 /res/res_sip_outbound_authenticator_digest.c | |
parent | de206baa99f0e72129f036f1d8258f802367cb58 (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_outbound_authenticator_digest.c')
-rw-r--r-- | res/res_sip_outbound_authenticator_digest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_sip_outbound_authenticator_digest.c b/res/res_sip_outbound_authenticator_digest.c index d4ce7d66a..13dc1f21b 100644 --- a/res/res_sip_outbound_authenticator_digest.c +++ b/res/res_sip_outbound_authenticator_digest.c @@ -56,6 +56,9 @@ static int set_outbound_authentication_credentials(pjsip_auth_clt_sess *auth_ses pj_cstr(&auth_creds[i].data, auths[i]->md5_creds); auth_creds[i].data_type = PJSIP_CRED_DATA_DIGEST; break; + case AST_SIP_AUTH_TYPE_ARTIFICIAL: + ast_log(LOG_ERROR, "Trying to set artificial outbound auth credentials shouldn't happen.\n"); + break; } } |