<!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.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Comic Sans MS" size=2>hi</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2>can somebody tell whats wrong with my cfg
, as i can not make/recieve calls now..seems i have played too much it and now m
confused as to what went wrong and where</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2>#<BR># ----------- global configuration
parameters
------------------------<BR>debug=9
# debug level (cmd line: -dddddddddd)<BR>fork=no<BR>log_stderror=yes # (cmd
line: -E)<BR>listen=localhost<BR>/* Uncomment these lines to enter debugging
mode <BR>debug=7<BR>fork=no<BR>log_stderror=yes<BR>*/</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2>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"</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2># ------------------ module loading
----------------------------------</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2># Uncomment this if you want to use SQL
database<BR>loadmodule "/usr/local/lib/ser/modules/mysql.so"<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/uri.so"<BR>loadmodule
"/usr/local/lib/ser/modules/auth.so"<BR>loadmodule
"/usr/local/lib/ser/modules/auth_db.so"<BR>loadmodule
"/usr/local/lib/ser/modules/acc.so"<BR>loadmodule
"/usr/local/lib/ser/modules/auth_radius.so"<BR>loadmodule
"/usr/local/lib/ser/modules/group_radius.so"</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV><FONT
face="Comic Sans MS" size=2>
<DIV><BR># ----------------- setting module-specific parameters
---------------</DIV>
<DIV> </DIV>
<DIV># -- usrloc params --</DIV>
<DIV> </DIV>
<DIV>modparam("usrloc", "db_mode", 2)<BR>modparam("auth_radius",
"radius_config","/usr/local/etc/radiusclient/radiusclient.conf")<BR>#modparam("auth_radius",
"service_type", 15)</DIV>
<DIV> </DIV>
<DIV># -- rr params --<BR># add value to ;lr param to make some broken UAs
happy<BR>modparam("rr", "enable_full_lr", 1)<BR>modparam("acc", "log_level",
1)<BR>modparam("acc", "radius_flag", 1)</DIV>
<DIV> </DIV>
<DIV># ------------------------- request routing logic
-------------------<BR># main routing logic</DIV>
<DIV> </DIV>
<DIV>route{<BR> # initial sanity
checks -- messages with<BR> #
max_forwards==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 (msg:len > max_len )
{<BR>
sl_send_reply("513", "Message too
big");<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV># we record-route all messages -- to make sure that<BR># subsequent
messages will go through our proxy; that's<BR># particularly good if upstream
and downstream entities<BR># use different transport protocol</DIV>
<DIV> </DIV>
<DIV> record_route(); </DIV>
<DIV> </DIV>
<DIV> # loose-route
processing<BR> if (loose_route())
<BR>
{<BR>
t_relay();<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> </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)<BR>
{<BR>
lookup("aliases");</DIV>
<DIV> </DIV>
<DIV><BR>
if (method=="REGISTER") {</DIV>
<DIV> </DIV>
<DIV>
log(1, "REGISTER: Authenticating user\n");</DIV>
<DIV> </DIV>
<DIV>
if (!radius_www_authorize(""))
{<BR>
log(1, "REGISTER: challenging
user\n");<BR>
www_challenge("",
"0");<BR>
break;<BR>
};<BR>
save("location");<BR>
break;<BR>
};</DIV>
<DIV> </DIV>
<DIV>##########################################################################################################<BR>
if
(uri=~"^sip:44[127][0-9]+@.*")<BR>
{</DIV>
<DIV> </DIV>
<DIV>
if
(rewritehostport("pstnrouter:5060"))<BR>
{<BR>
if
(!t_relay())<BR>
{<BR>
sl_reply_error();<BR>
};</DIV>
<DIV> </DIV>
<DIV>
}<BR>
break;<BR>
}<BR>
else if
(uri=~"^sip:01[0-9]+@.*")<BR>
{<BR>
if
(!t_relay())<BR>
{<BR>
sl_reply_error();<BR>
};<BR>
break;<BR>
};</DIV>
<DIV> </DIV>
<DIV><BR>
# account completed transactions via
syslog<BR>
setflag(1);<BR> }</DIV>
<DIV> </DIV>
<DIV>###############################################################################################################<BR>
if (method=="INVITE") {</DIV>
<DIV> </DIV>
<DIV>
log(1,
"INVITE\n");<BR>
setflag(1); /* set for accounting (the same value as in log_flag!)
*/<BR> };</DIV>
<DIV> </DIV>
<DIV> if (method=="MESSAGE")
{<BR>
log(1,
"MESSAGE\n");<BR>
setflag(1); /* set for accounting (the same value as in log_flag!)
*/<BR> };</DIV>
<DIV> </DIV>
<DIV> if (method=="BYE" ||
method=="CANCEL")
{<BR>
log (1, "BYE or
CANCEL\n");<BR>
setflag(1);<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> if (!t_relay())
{<BR>
sl_reply_error();<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV>}</FONT></DIV></BODY></HTML>