Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Authentication route
- route[AUTH] {
- #!ifdef WITH_IPAUTH
- if(allow_source_address())
- {
- # source IP allowed
- return;
- }
- #!endif
- #!ifdef WITH_AUTH
- if (is_method("REGISTER"))
- {
- # authenticate the REGISTER requests (uncomment to enable auth)
- if (!www_authorize("$td", "subscriber"))
- {
- www_challenge("$td", "0");
- exit;
- }
- if ($au!=$tU)
- {
- sl_send_reply("403","Forbidden auth ID");
- exit;
- }
- } else {
- #!ifdef WITH_IPAUTH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement