[Serusers] check user if authenticated

Matt Schulte mschulte at netlogic.net
Tue May 10 17:03:56 CEST 2005


Something like this before your final route should work..

if (!proxy_authorize("blah.realm.blah", "subscriber")) {
	xlog("L_INFO", "Auth failed before %rm from <%fu>. sending
challenge\n");
	proxy_challenge("blah.realm.blah", "1");
	break;
};

if (!method == "CANCEL" && !method == "ACK" )        {
	if (!is_user_in("Credentials", "int")) {
		xlog("L_INFO", "User dialout but no privs or no ACL,
dropping %fu URI %ru\n");
		sl_send_reply("403", "Forbidden go away");
		break;
	}
}

-----Original Message-----
From: Edgardo O. Gonzales II [mailto:edgardo.g at pacific.net.ph] 
Sent: Tuesday, May 10, 2005 8:35 AM
To: serusers at lists.iptel.org
Subject: [Serusers] check user if authenticated



Hi!

How will I check if user is authenticated or not before I permit him to 
make a call.

thanks,
ed

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




More information about the sr-users mailing list