<P>
<BR>
Hello,<BR>
<BR>
we are using ser version 0.8.14 and the script ser.cfg is working fine without database.<BR>
But after enabling write to database mode, and digest authentication we get one way request and no response from the server.<BR>
<BR>
We variefied this is happening when we uncomment <BR>
loadmodule "/usr/local/lib/ser/modules/auth_db.so"<BR>
<BR>
I am sending U the complete script which we are using, please help us to solve our problem.<BR>
####################################################<BR>
<BR>
#debug=3 # debug level (cmd line: -dddddddddd)<BR>
#fork=yes<BR>
#log_stderror=no # (cmd line: -E)<BR>
<BR>
# Uncomment these lines to enter debugging mode<BR>
<BR>
debug=10<BR>
fork=no<BR>
log_stderror=yes<BR>
<BR>
<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>
#alias="localhost"<BR>
fifo="/tmp/ser_fifo"<BR>
# ------------------ module loading ----------------------------------<BR>
<BR>
# 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>
<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>
<BR>
# Uncomment this if you want digest authentication<BR>
# mysql.so must be loaded !<BR>
loadmodule "/usr/local/lib/ser/modules/auth.so"<BR>
loadmodule "/usr/local/lib/ser/modules/auth_db.so"<BR>
<BR>
# ----------------- setting module-specific parameters ---------------<BR>
<BR>
# -- usrloc params --<BR>
#modparam("usrloc", "db_mode", 0)<BR>
<BR>
# Uncomment this if you want to use SQL database<BR>
# for persistent storage and comment the previous line<BR>
modparam("usrloc", "db_mode", 2)<BR>
<BR>
# -- auth params --<BR>
# Uncomment if you are using auth module<BR>
#<BR>
modparam("auth_db", "db_url", "sql://ser:heslo@localhost:3306/ser")<BR>
modparam("auth_db", "calculate_ha1", 1)<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_db","user_column", "username")<BR>
modparam("auth_db", "password_column", "password")<BR>
modparam("auth_db","domain_column","domain")<BR>
<BR>
# -- rr params --<BR>
# add value to ;lr param to make some broken UAs happy<BR>
<BR>
<BR>
# add value to ;lr param to make some broken UAs happy<BR>
modparam("rr", "enable_full_lr", 1)<BR>
<BR>
# ------------------------- request routing logic -------------------<BR>
<BR>
# main routing logic<BR>
<BR>
route{<BR>
<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>
};<BR>
<BR>
# 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<BR>
record_route();<BR>
# loose-route processing<BR>
if (loose_route()) {<BR>
t_relay();<BR>
break;<BR>
};<BR>
<BR>
# 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>
<BR>
<BR>
if (uri==myself) {<BR>
<BR>
if (method=="REGISTER") {<BR>
<BR>
# Uncomment this if you want to use digest authentication<BR>
if (!www_authorize("192.168.1.101", "subscriber")) {<BR>
<BR>
www_challenge("192.168.1.101", "1");<BR>
break;<BR>
};<BR>
<BR>
<BR>
save("location");<BR>
break;<BR>
};<BR>
<BR>
# 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; use stateful forwarding; that<BR>
# works reliably even if we forward from TCP to UDP<BR>
if (!t_relay()) {<BR>
sl_reply_error();<BR>
};<BR>
<BR>
}<BR>
<BR>
#################################<BR>
<BR>
<BR>
<BR>
</P>
<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=0 VSPACE=0 HSPACE=0></a>