[Serusers] www_challange and proxy_challange

Chris St Denis chris at aebc.com
Tue Aug 23 21:35:16 CEST 2005


www_authorize/www_challenge should be used in register. 
proxy_authorize/proxy_challenge in invite.

I don't see any need for the www_authorize in invite and I don't think any
messages other than register and invite support authentication.

-----Original Message-----
From: serusers-bounces at iptel.org [mailto:serusers-bounces at lists.iptel.org] On
Behalf Of Thomas Britis
Sent: Tuesday, August 23, 2005 12:16 PM
To: serusers at lists.iptel.org
Subject: [Serusers] www_challange and proxy_challange

Hi all,

	Is it sane to use:

if (uri==myself) {
	if (method=="REGISTER") {
		if (!www_authorize("", "subscriber")) {
			www_challenge("", "0");
			break;
		};
	} else {
		if (!www_authorize("", "subscriber")) {
			if (!proxy_authorize("", "subscriber")) {
				proxy_challenge("", "0");
				break;
			};
		};
	};
};

	Or anything here appears to be wrong ?

	Thank you.
-- 
Thomas Storino Britis
TCNet Inf e Telecom LTDA

_______________________________________________
Serusers mailing list
serusers at lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list