<P>
&nbsp; <BR>
 hello ser users,<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i am trying to insert mysql and authorisation modules in to ser. i want to control the user logins. <BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp;  after refering to the SER getting started document i have loaded&nbsp; mysql and auth etc.. modules in to the ser.cfg. then i tried creating the database 'ser' with 'subscriber' table and &quot;username , domain , password&quot; as fields. but when i used the command &quot;serctl add 1000 password user1@nowhere&quot; it is giving the following error &quot;SER/FIFO not accessible: 2&quot;. then when i started SER , i got the following messages in /var/log<BR>
<BR>
Oct 20 16:57:30 localhost ser: WARNING: fix_socket_list: could not rev. resolve 192.168.1.247<BR>
Oct 20 16:57:30 localhost ser: WARNING: fix_socket_list: could not rev. resolve 192.168.1.247<BR>
Oct 20 16:57:30 localhost ser[7006]: Maxfwd module- initializing<BR>
Oct 20 16:57:30 localhost ser[7007]: WARNING: no fifo_db_url given - fifo DB commands disabled!<BR>
<BR>
i am giving my ser.cfg file:<BR>
<BR>
#debug=3&nbsp; &nbsp; &nbsp; &nbsp;  # debug level (cmd line: -dddddddddd)<BR>
#fork=yes<BR>
#log_stderror=no&nbsp; &nbsp; &nbsp; &nbsp; # (cmd line: -E)<BR>
<BR>
/* Uncomment these lines to enter debugging mode<BR>
fork=no<BR>
log_stderror=yes<BR>
*/<BR>
<BR>
check_via=no&nbsp; &nbsp; # (cmd. line: -v)<BR>
dns=no&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  # (cmd. line: -r)<BR>
rev_dns=no&nbsp; &nbsp; &nbsp; # (cmd. line: -R)<BR>
#port=5060<BR>
#children=4<BR>
fifo=&quot;/tmp/ser_fifo&quot;<BR>
fifo_db_url=&quot;mysql://ser:heslo@192.168.1.247/ser&quot;<BR>
# ------------------ module loading ----------------------------------<BR>
<BR>
# Uncomment this if you want to use SQL database<BR>
loadmodule &quot;/usr/local/lib/ser/modules/mysql.so&quot;<BR>
<BR>
loadmodule &quot;/usr/local/lib/ser/modules/sl.so&quot;<BR>
loadmodule &quot;/usr/local/lib/ser/modules/tm.so&quot;<BR>
loadmodule &quot;/usr/local/lib/ser/modules/rr.so&quot;<BR>
loadmodule &quot;/usr/local/lib/ser/modules/maxfwd.so&quot;<BR>
loadmodule &quot;/usr/local/lib/ser/modules/usrloc.so&quot;<BR>
loadmodule &quot;/usr/local/lib/ser/modules/registrar.so&quot;<BR>
loadmodule &quot;/usr/local/lib/ser/modules/textops.so&quot;<BR>
# Uncomment this if you want digest authentication<BR>
# mysql.so must be loaded !<BR>
loadmodule &quot;/usr/local/lib/ser/modules/auth.so&quot;<BR>
loadmodule &quot;/usr/local/lib/ser/modules/auth_db.so&quot;<BR>
loadmodule &quot;/usr/local/lib/ser/modules/uri_db.so&quot;<BR>
# ----------------- setting module-specific parameters ---------------<BR>
<BR>
# -- usrloc params --<BR>
<BR>
#modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,&nbsp;  0)<BR>
<BR>
# Uncomment this if you want to use SQL database<BR>
# for persistent storage and comment the previous line<BR>
#modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<BR>
modparam(&quot;auth_db|uri_db|usrloc&quot;, &quot;db_url&quot;, &quot;mysql://ser:heslo@192.168.1.247/ser&quot;)<BR>
# -- auth params --<BR>
# Uncomment if you are using auth module<BR>
#<BR>
<BR>
modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<BR>
#<BR>
# If you set &quot;calculate_ha1&quot; parameter to yes (which true in this config),<BR>
# uncomment also the following parameter)<BR>
#<BR>
modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<BR>
modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<BR>
# -- rr params --<BR>
# add value to ;lr param to make some broken UAs happy<BR>
modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)<BR>
<BR>
#modparam(&quot;pa&quot;,&quot;default_expires&quot;,1800)<BR>
#modparam(&quot;pa&quot;,&quot;timer_interval&quot;,10)<BR>
#modparam(&quot;pa&quot;,&quot;use_db&quot;,0)<BR>
#modparam(&quot;pa&quot;,&quot;use_place_table&quot;,0)<BR>
#modparam(&quot;pa&quot;,&quot;use_bsearch&quot;,0)<BR>
#modparam(&quot;pa&quot;,&quot;use_location_package&quot;,0)<BR>
#modparam(&quot;pa&quot;,&quot;pa_domain&quot;,&quot;bigU.edu&quot;)<BR>
# -------------------------&nbsp; request routing logic -------------------<BR>
<BR>
# main routing logic<BR>
<BR>
route{<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # initial sanity checks -- messages with<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # max_forwards==0, or excessively long requests<BR>
&nbsp; &nbsp; &nbsp; &nbsp; if (!mf_process_maxfwd_header(&quot;10&quot;)) {<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; };<BR>
&nbsp; &nbsp; &nbsp; &nbsp; if (msg:len &gt;=&nbsp; 2048 ) {<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; };<BR>
<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # we record-route all messages -- to make sure that<BR>
&nbsp; &nbsp; &nbsp; # subsequent messages will go through our proxy; that's<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # particularly good if upstream and downstream entities<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # use different transport protocol<BR>
&nbsp; &nbsp; &nbsp; &nbsp; if (!method==&quot;REGISTER&quot;) record_route();<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # subsequent messages withing a dialog should take the<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # path determined by record-routing<BR>
&nbsp; &nbsp; &nbsp; &nbsp; if (loose_route()) {<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # mark routing logic in request<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; append_hf(&quot;P-hint: rr-enforced\r\n&quot;);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; };<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; if (!uri==myself) {<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # mark routing logic in request<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; append_hf(&quot;P-hint: outbound\r\n&quot;);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; };<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # if the request is for other domain use UsrLoc<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # (in case, it does not work, use the following command<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # with proper names and addresses in it)<BR>
&nbsp; &nbsp; &nbsp; &nbsp; if (uri==myself) {<BR>
#rupesh code start<BR>
if (method==&quot;INVITE&quot;)<BR>
{<BR>
route(2);<BR>
break;<BR>
}<BR>
else if (method==&quot;REGISTER&quot;) {<BR>
<BR>
# Uncomment this if you want to use digest authentication<BR>
sl_send_reply(&quot;100&quot;, &quot;Trying&quot;);<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!www_authorize(&quot;192.168.1.247&quot;, &quot;subscriber&quot;)) {<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; www_challenge(&quot;192.168.1.247&quot;, &quot;0&quot;);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<BR>
if (!check_to())<BR>
{<BR>
sl_send_reply(&quot;401&quot;, &quot;Unauthorized&quot;);<BR>
break;<BR>
};<BR>
consume_credentials();<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!save(&quot;location&quot;))<BR>
{<BR>
sl_reply_error();<BR>
};<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<BR>
lookup(&quot;aliases&quot;);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!uri==myself) {<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; append_hf(&quot;P-hint: outbound alias\r\n&quot;);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # native SIP destinations are handled using our USRLOC DB<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!lookup(&quot;location&quot;)) {<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<BR>
&nbsp; &nbsp; &nbsp; &nbsp; };<BR>
&nbsp; &nbsp; &nbsp; &nbsp; append_hf(&quot;P-hint: usrloc applied\r\n&quot;);<BR>
&nbsp; &nbsp; &nbsp; &nbsp; route(1);<BR>
}<BR>
<BR>
route[1]<BR>
{<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # send it out now; use stateful forwarding as it works reliably<BR>
&nbsp; &nbsp; &nbsp; &nbsp; # even for UDP2TCP<BR>
&nbsp; &nbsp; &nbsp; &nbsp; if (!t_relay()) {<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_reply_error();<BR>
&nbsp; &nbsp; &nbsp; &nbsp; };<BR>
}<BR>
<BR>
route[2]<BR>
{<BR>
if(!proxy_authorize(&quot;192.168.1.247&quot;,&quot;subscriber&quot;))<BR>
{<BR>
proxy_challenge(&quot;192.168.1.247&quot;,&quot;0&quot;);<BR>
break;<BR>
}<BR>
else if(!check_from())<BR>
{<BR>
sl_send_reply(&quot;403&quot;, &quot;Use From=ID&quot;);<BR>
break;<BR>
};<BR>
consume_credentials():<BR>
lookup(&quot;aliases&quot;);<BR>
if(uri!=myself)<BR>
route(1);<BR>
break;<BR>
};<BR>
<BR>
if(!lookup(&quot;location&quot;))<BR>
{<BR>
sl_send_reply(&quot;404&quot;, &quot;User Not Found&quot;);<BR>
break;<BR>
};<BR>
<BR>
route(1);<BR>
}<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR>
<BR>
&nbsp; &nbsp; <BR>
hope some one can give me some guidance regarding the same, thank you,<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rupesh
</P>
<br><br>
<a href="http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3"><IMG SRC="http://adworks.rediff.com/cgi-bin/AdWorks/sigimpress.cgi/www.rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=null&PARTNER=3" BORDER=0 VSPACE=0 HSPACE=0></a>