Module: sip-router
Branch: master
Commit: 0c3664778b50bee82c39194334729123164dcdf6
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0c36647…
Author: Alex Hermann <alex(a)speakup.nl>
Committer: Alex Hermann <alex(a)speakup.nl>
Date: Fri Jun 3 12:24:12 2011 +0200
modules_k/uac: Allow all type of PV's for uac auth_*_avp instead of just AVP's
Keep the parameter names as *_avp to keep backwards compatibility even though the
names make no sense anymore.
---
modules_k/uac/auth.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/uac/auth.c b/modules_k/uac/auth.c
index 8fb8853..18a0cf1 100644
--- a/modules_k/uac/auth.c
+++ b/modules_k/uac/auth.c
@@ -432,7 +432,7 @@ int uac_auth( struct sip_msg *msg)
/* can we authenticate this realm? */
crd = 0;
/* first look into AVP, if set */
- if ( auth_realm_spec.type==PVT_AVP )
+ if ( auth_realm_spec.type!=PVT_NONE )
crd = get_avp_credential( msg, &auth.realm );
/* if not found, look into predefined credentials */
if (crd==0)