<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2719.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hi Jan,</DIV>
<DIV> </DIV>
<DIV>I have successfully compiled the radius modules radius_acc.so and
radius_auth.so. But when I try to load the both modules ser tells me:</DIV>
<DIV> </DIV>
<DIV>ERROR: bad config file (2 errors)</DIV>
<DIV> </DIV>
<DIV>I use the solaris binary package from iptel and have compiled myself only
the both radius modules. Is there any incompability? How can I get mor debug
information?</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV> </DIV>
<DIV>Yang</DIV>
<DIV>-----------------------------------</DIV>
<DIV>My config file:</DIV>
<DIV> </DIV>
<DIV>debug=7 # debug level
(cmd line: -dddddddddd)<BR>fork=yes<BR>log_stderror=no # (cmd line:
-E)<BR>check_via=no # (cmd. line:
-v)<BR>dns=no #
(cmd. line: -r)<BR>rev_dns=no # (cmd. line:
-R)<BR>port=5060<BR>children=4<BR>fifo="/tmp/ser_fifo"</DIV>
<DIV> </DIV>
<DIV># ------------------ module loading
----------------------------------</DIV>
<DIV> </DIV>
<DIV># Uncomment this if you want to use SQL database<BR>#loadmodule
"/usr/local/lib/ser/modules/mysql.so"<BR><BR>loadmodule
"/usr/local/lib/ser/modules/sl.so"<BR>loadmodule
"/usr/local/lib/ser/modules/tm.so"<BR>loadmodule
"/usr/local/lib/ser/modules/rr.so"<BR>loadmodule
"/usr/local/lib/ser/modules/maxfwd.so"<BR>loadmodule
"/usr/local/lib/ser/modules/usrloc.so"<BR>loadmodule
"/usr/local/lib/ser/modules/registrar.so"<BR>loadmodule
"/usr/local/lib/ser/modules/radius_acc.so"<BR>loadmodule
"/usr/local/lib/ser/modules/radius_auth.so"</DIV>
<DIV> </DIV>
<DIV># Uncomment this if you want digest authentication<BR># mysql.so must be
loaded !<BR>#loadmodule "/usr/local/lib/ser/modules/auth.so"</DIV>
<DIV> </DIV>
<DIV># ----------------- setting module-specific parameters
---------------</DIV>
<DIV> </DIV>
<DIV># -- usrloc params --</DIV>
<DIV> </DIV>
<DIV>modparam("usrloc", "db_mode", 0)</DIV>
<DIV> </DIV>
<DIV># Uncomment this if you want to use SQL database<BR># for persistent
storage and comment the previous line<BR>#modparam("usrloc", "db_mode", 2)</DIV>
<DIV> </DIV>
<DIV># -- auth params --<BR># Uncomment if you are using auth
module<BR>#<BR>#modparam("auth", "secret",
"alsdkhglaksdhfkloiwr")<BR>#modparam("auth", "calculate_ha1", yes)<BR>#<BR># If
you set "calculate_ha1" parameter to yes (which true in this config),<BR>#
uncomment also the following parameter)<BR>#<BR>#modparam("auth",
"password_column", "password")</DIV>
<DIV> </DIV>
<DIV># ------------------------- request routing logic
-------------------</DIV>
<DIV> </DIV>
<DIV># main routing logic<BR>alias="pix-demo.fhg.de"</DIV>
<DIV> </DIV>
<DIV>route{</DIV>
<DIV> </DIV>
<DIV> # initial sanity checks --
messages with<BR> # max_forwars==0, or
excessively long requests<BR> if
(!mf_process_maxfwd_header("10"))
{<BR>
sl_send_reply("483","Too Many
Hops");<BR>
break;<BR>
};<BR> if (len_gt( max_len ))
{<BR>
sl_send_reply("513", "Message too
big");<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> # Do strict routing if
pre-loaded route headers present<BR>
rewriteFromRoute();</DIV>
<DIV> </DIV>
<DIV> # if the request is for other
domain use UsrLoc<BR> # (in case, it
does not work, use the following
command<BR> # with proper names and
addresses in it)<BR> if (uri==myself)
{</DIV>
<DIV> </DIV>
<DIV>
if (method=="REGISTER") {</DIV>
<DIV> </DIV>
<DIV># Uncomment this if you want to use digest
authentication<BR>#
if (!www_authorize("iptel.org", "subscriber"))
{<BR>#
www_challenge("iptel.org",
"0");<BR>#
break;<BR>#
};</DIV>
<DIV> </DIV>
<DIV>
save("location");<BR>
break;<BR>
};</DIV>
<DIV> </DIV>
<DIV>
# 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> };</DIV>
<DIV> </DIV>
<DIV>}<BR></DIV></BODY></HTML>