Ver Fonte

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.
Alex Hermann há 14 anos atrás
pai
commit
0c3664778b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      modules_k/uac/auth.c

+ 1 - 1
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)