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@pacific.net.ph] Sent: Tuesday, May 10, 2005 8:35 AM To: serusers@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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers