<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I wanted to configure ser so that only registered
user are allowed to make calls. I have set up digest authentication but still
unregistered users can make calls. I wonder if I'm missing something on my
config file (as attached below).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Could someone please tell me what am I doing wrong,
or provide me some configuration example on solving this issue?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Thanks and regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Claudio</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>###########</FONT></DIV>
<DIV><FONT face=Arial size=2>ser.conf</FONT></DIV>
<DIV><FONT face=Arial size=2>###########</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>route{</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR> # Do
strict routing if pre-loaded route headers
present<BR>
rewriteFromRoute();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if
(uri==myself) {</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
if (method=="REGISTER") {</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
if (!www_authorize("<my_ip>", "subscriber"))
{<BR>
www_challenge("<my_ip>",
"0");<BR>
break;<BR>
};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
if (method=="INVITE" & !check_from())
{<BR>
sl_send_reply("403","Forbidden");<BR>
break;<BR>
};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
save("location");<BR>
break;<BR>
};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
# native SIP destinations are handled using our USRLOC
DB<BR>
if (!lookup("location"))
{<BR>
sl_send_reply("404", "Not
Found");<BR>
break;<BR>
};<BR>
};<BR> # forward to current uri
now<BR> if (!t_relay())
{<BR>
sl_reply_error();<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>##########</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>