<!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.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=703370012-26062006>hi ram,<BR>&nbsp;&nbsp;&nbsp; thanks. I've got the 
Mysql problem solved. new one arises !!</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=703370012-26062006>[root@oracle2 sbin]# ./ser<BR>&nbsp;0(7598) WARNING: 
fix_socket_list: could not rev. resolve 202.80.40.141<BR>&nbsp;0(7598) WARNING: 
fix_socket_list: could not rev. resolve 202.80.40.141<BR>Listening 
on<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
udp: 202.80.40.141 
[202.80.40.141]:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
udp: 127.0.0.1 
[127.0.0.1]:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
tcp: 202.80.40.141 
[202.80.40.141]:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
tcp: 127.0.0.1 
[127.0.0.1]:5060<BR>Aliases:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
tcp: 
localhost:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
tcp: 
localhost.localdomain:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
tcp: 
oracle:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
tcp: 
oracle2.hungama.com:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
udp: 
localhost:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
udp: 
localhost.localdomain:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
udp: 
oracle:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
udp: 
oracle2.hungama.com:5060<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
*: 
202.80.40.141:*<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
*: ims.hungama.com:*</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=703370012-26062006>stateless - initializing<BR>[root@oracle2 sbin]#&nbsp; 
0(0) Maxfwd module- initializing<BR>textops - initializing<BR>&nbsp;0(0) INFO: 
udp_init: SO_RCVBUF is initially 110592<BR>&nbsp;0(0) INFO: udp_init: SO_RCVBUF 
is finally 262142<BR><STRONG>&nbsp;<FONT color=#ff0000>0(0) ERROR: udp_init: 
bind(4, 0x810bffc, 16) on 202.80.40.141: Address already in 
use</FONT></STRONG>&nbsp;<STRONG><FONT color=#ff0000>&nbsp; #this is 
error</FONT></STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=703370012-26062006><STRONG><FONT 
color=#ff0000></FONT></STRONG></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006><STRONG>below is few 
lines from my ser.cfg, may help u to&nbsp;find the 
error</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=703370012-26062006><STRONG></STRONG></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006># ----------- global 
configuration parameters ------------------------</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=703370012-26062006>debug=3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# debug level (cmd line: 
-dddddddddd)<BR>fork=yes<BR>log_stderror=yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# (cmd line: -E)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=703370012-26062006>listen=202.80.40.141<BR>listen=127.0.0.1</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006># hostname matching 
an alias will satisfy the condition 
uri==myself".<BR>alias=ims.mysip.com<BR>alias=202.80.40.141</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006>/* Uncomment these 
lines to enter debugging 
mode<BR>fork=no<BR>log_stderror=yes<BR>*/</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=703370012-26062006>check_via=no&nbsp;&nbsp;&nbsp; # (cmd. line: 
-v)<BR>dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
(cmd. line: -r)<BR>rev_dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: 
-R)<BR>port=5060<BR>children=4<BR>fifo="/tmp/ser_fifo"</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=703370012-26062006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006><STRONG># 
------------------ module loading 
----------------------------------</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006>#Uncomment tdfsdfis 
if you want to use SQL database<BR>loadmodule 
"/usr/local/lib/ser/modules/mysql.so"</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006>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/textops.so"</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006># 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"</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006># ----------------- 
setting module-specific parameters ---------------</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006># -- usrloc params 
--</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006>modparam("usrloc", 
"db_mode",&nbsp;&nbsp; 0)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006># Uncomment this if 
you want to use SQL database<BR># for persistent storage and comment the 
previous line<BR>modparam("usrloc", "db_mode", 2)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006># -- auth params 
--<BR># Uncomment if you are using auth module<BR>#<BR>modparam("auth_db", 
"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_db", "password_column", 
"password")</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006># -- rr params 
--<BR># add value to ;lr param to make some broken UAs happy<BR>modparam("rr", 
"enable_full_lr", 1)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=703370012-26062006><STRONG></STRONG></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=703370012-26062006><STRONG>any clu 
??</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=703370012-26062006><STRONG></STRONG></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=703370012-26062006><STRONG>regards</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=703370012-26062006><STRONG><FONT 
color=#000000>Mukesh</FONT></STRONG></DIV>
<DIV dir=ltr align=left><BR></DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=703370012-26062006><BR>&nbsp;</DIV></SPAN></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ram [mailto:talk2ram@gmail.com] 
<BR><B>Sent:</B> Monday, June 26, 2006 11:19 AM<BR><B>To:</B> 
mukesh<BR><B>Subject:</B> Re: [Serusers] ERROR: bad config file (1 
errors)<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi Mukesh</DIV>
<DIV>&nbsp;</DIV>
<DIV>better get in to <A href="http://onsip.org">onsip.org</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>download ser-0.97-pre</DIV>
<DIV>&nbsp;</DIV>
<DIV>edit make file in the exclude remove mysql</DIV>
<DIV>and save </DIV>
<DIV>&nbsp;</DIV>
<DIV>make all</DIV>
<DIV>make install</DIV>
<DIV>&nbsp;</DIV>
<DIV>should solve ur problem</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV>ram<BR><BR>&nbsp;</DIV>
<DIV><SPAN class=gmail_quote>On 6/23/06, <B class=gmail_sendername>mukesh</B> 
&lt;<A href="mailto:mukesh@hungama.com">mukesh@hungama.com</A>&gt; wrote:</SPAN> 

<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
  <DIV>
  <DIV bgcolor="#ffffff" text="#000000">
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>hi 
  olivier,</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
  color=#0000ff size=2>in fact I have downloaded ser-0.9.6_linux_i386.tar.tar 
  from <A onclick="return top.js.OpenExtLink(window,event,this)" 
  href="http://iptel.org/" target=_blank>iptel.org</A>.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;<FONT face=Arial 
  color=#0000ff size=2>then I have put the ser-0.9.6_linux_i386.tar.tar file in 
  root(/) directory and executed following command</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2>&nbsp;&nbsp;&nbsp; </FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2>&nbsp;&nbsp;&nbsp; [root@oracle2 /]# tar -xvzf 
  ser-0.9.6_linux_i386.tar.tar</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
  color=#0000ff size=2>do still need to recompile it ? .....I think complation 
  had to be done in case I had the source code.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2>regards</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2>Mukesh</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV lang=en-us dir=ltr align=left>
  <HR>
  <FONT face=Tahoma size=2></FONT></DIV>
  <DIV><SPAN class=q><B>From:</B> olivier.taylor [mailto:<A 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:olivier.taylor@gmail.com" 
  target=_blank>olivier.taylor@gmail.com</A>] <BR></SPAN></DIV>
  <DIV><B>Sent:</B> Friday, June 23, 2006 3:16 PM</DIV>
  <DIV><SPAN class=e id=q_10c007142c3775af_3><BR><B>To:</B> mukesh<BR><B>Cc:</B> 
  <A onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:olivier.taylor@phonext.com" 
  target=_blank>olivier.taylor@phonext.com </A>; <A 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:serusers@lists.iptel.org" 
  target=_blank>serusers@lists.iptel.org</A><BR><B>Subject:</B> Re: [Serusers] 
  ERROR: bad config file (1 errors)<BR></SPAN></DIV>
  <DIV><BR>&nbsp;</DIV></DIV>
  <DIV><SPAN class=e id=q_10c007142c3775af_5>
  <DIV></DIV>it seems that you didn't compile ser with mysql support.<BR><BR>go 
  to the makefile et have a look at <BR><BR>exclude_modules?= <BR>delete the 
  mysql entry and recompile<BR><BR>Olivier<BR><BR>mukesh a écrit&nbsp;: 
  <BLOCKQUOTE cite=http://mid20060623094015.A9F9EDC4D4@netbox.hungama.com 
  type="cite">
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>hi 
    olivier,</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>below is 
    the log</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2>-----------------------------------log starts 
    here--------------------------------------------</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Jun 23 
    14:51:48 oracle2 ser: ERROR: load_module: could not open module 
    &lt;/usr/local/lib/ser/modules/mysql.so&gt;: libmysqlclient.so.12: cannot 
    open shared object file: No such file or directory <BR>Jun 23 14:51:48 
    oracle2 ser: parse error (37,13-14): failed to load 
    module</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2><SPAN><FONT face=Arial color=#0000ff 
    size=2>-----------------------------------log ends 
    here-------------------------------------------- 
    </FONT></SPAN></FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2><SPAN></SPAN></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2><SPAN>and&nbsp;line no. 37 is </SPAN></FONT></SPAN></DIV>
    <DIV><FONT face=Arial color=#0000ff size=2>loadmodule 
    "/usr/local/lib/ser/modules/mysql.so"</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=Arial color=#0000ff size=2><SPAN>please suggest some 
    solution.</SPAN></FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>regards</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=Arial color=#0000ff size=2>Mukesh</FONT></SPAN></DIV>
    <DIV><BR>&nbsp;</DIV>
    <DIV lang=en-us dir=ltr align=left>
    <HR>
    <FONT face=Tahoma size=2><B>From:</B> olivier.taylor [<A 
    onclick="return top.js.OpenExtLink(window,event,this)" 
    href="mailto:olivier.taylor@gmail.com" 
    target=_blank>mailto:olivier.taylor@gmail.com</A>] <BR><B>Sent: </B>Friday, 
    June 23, 2006 12:45 PM<BR><B>To:</B> mukesh<BR><B>Cc:</B> <A 
    onclick="return top.js.OpenExtLink(window,event,this)" 
    href="mailto:olivier.taylor@phonext.com" 
    target=_blank>olivier.taylor@phonext.com</A>; <A 
    onclick="return top.js.OpenExtLink(window,event,this)" 
    href="mailto:serusers@lists.iptel.org" 
    target=_blank>serusers@lists.iptel.org</A><BR><B>Subject:</B> Re: [Serusers] 
    ERROR: bad config file (1 errors)<BR></FONT><BR>&nbsp;</DIV>yes, sure 
    :)<BR><BR>/var/log/messages<BR><BR>you will find the informations you need 
    concerning that error, at least, the line of your cfg where the error 
    occurs. <BR><BR>Olivier<BR><BR>mukesh a écrit&nbsp;: 
    <BLOCKQUOTE cite=http://mid20060623065916.55950DC4C7@netbox.hungama.com 
    type="cite"><PRE>Thanks you olivier.

Can you be little more specific, where this message file is located ? 

Regards
Mukesh 

-----Original Message-----
From: olivier.taylor [<A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:olivier.taylor@gmail.com" target=_blank>mailto:olivier.taylor@gmail.com</A>] 
Sent: Thursday, June 22, 2006 9:55 PM
To: mukesh
Cc: <A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:serusers@lists.iptel.org" target=_blank>serusers@lists.iptel.org</A>
Subject: Re: [Serusers] ERROR: bad config file (1 errors)

see the message file, you will find there the line wich is not correct on
your ser.cfg

Olivier

mukesh a écrit :
  </PRE>
      <BLOCKQUOTE type="cite"><PRE>Hi I am getting "ERROR: bad config file (1 errors)" while truing to 
execute the SER.

And I could not figure out whats wrong with this line loadmodule 
"/usr/local/lib/ser/modules/mysql.so"

If I comment it then everything is file.


Following is my ser.cfg file
---------------------------------ser.cfg 
star------------------------------
#
# $Id: ser.cfg,v <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.25.2.1/" target=_blank>1.25.2.1</A> 2005/02/18 14:30:44 andrei Exp $ # # simple 
quick-start config script #

# ----------- global configuration parameters ------------------------

debug=3         # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no        # (cmd line: -E)

listen=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.87.41.149/" target=_blank>192.87.41.149</A> #this address has been changed



# hostname matching an alias will satisfy the condition uri==myself".
alias=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://sip.myserver.com/" target=_blank>sip.myserver.com</A>

/* Uncomment these lines to enter debugging mode fork=no 
log_stderror=yes */

#check_via=no        # (cmd. line: -v)
dns=no           # (cmd. line: -r)
rev_dns=no      # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://ser:heslo@localhost/ser"

# ------------------ module loading ----------------------------------

# Uncomment this if you want to use SQL database loadmodule 
"/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/uri_db.so" #added by mukesh

# Uncomment this if you want digest authentication # mysql.so must be 
loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"

# ----------------- setting module-specific parameters ---------------

# -- usrloc params --
modparam("usrloc", "db_url", "mysql://ser:heslo@localhost/ser") #added 
by mukesh
modparam("usrloc", "db_mode",   0)

# Uncomment this if you want to use SQL database # for persistent 
storage and comment the previous line modparam("usrloc", "db_mode", 2)

# -- auth params --
# Uncomment if you are using auth module # modparam("auth_db", 
"calculate_ha1", yes) # # If you set "calculate_ha1" parameter to yes 
(which true in this config), # uncomment also the following parameter) 
# modparam("auth_db", "password_column", "password")

# -- rr params --
# add value to ;lr param to make some broken UAs happy #modparam("rr", 
"enable_full_lr", 1)

# -------------------------  request routing logic -------------------

# main routing logic

route{

        # initial sanity checks -- messages with
        # max_forwards==0, or excessively long requests
        if (!mf_process_maxfwd_header("10")) {
                sl_send_reply("483","Too Many Hops");
                break;
        };
        if (msg:len &gt;=  2048 ) {
                sl_send_reply("513", "Message too big");
                break;
        };
        

        # we record-route all messages -- to make sure that
        # subsequent messages will go through our proxy; that's
        # particularly good if upstream and downstream entities
        # use different transport protocol
        if (!method=="REGISTER") record_route();        

        # subsequent messages withing a dialog should take the
        # path determined by record-routing
        if (loose_route()) {
                # mark routing logic in request
                append_hf("P-hint: rr-enforced\r\n"); 
                route(1);
                break;
        };

        if (!uri==myself) {
                # mark routing logic in request
                append_hf("P-hint: outbound\r\n"); 
                route(1);
                break;
        };

        # if the request is for other domain use UsrLoc
        # (in case, it does not work, use the following command
        # with proper names and addresses in it)
        if (uri==myself) {

                if (method=="REGISTER") {

# Uncomment this if you want to use digest authentication
                        if (!www_authorize("<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://sip.myserver.com/" target=_blank>sip.myserver.com</A>",
"subscriber")) {
                                www_challenge("<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://ser.hungama.com/" target=_blank>ser.hungama.com</A>", "0");
                                break;
                        };

                        save("location");
                        break;
                };

                lookup("aliases");
                if (!uri==myself) {
                        append_hf("P-hint: outbound alias\r\n"); 
                        route(1);
                        break;
                };

                # native SIP destinations are handled using our USRLOC DB
                if (!lookup("location")) {
                        sl_send_reply("404", "Not Found");
                        break;
                };
        };
        append_hf("P-hint: usrloc applied\r\n"); 
        route(1);
}

route[1]
{
        # send it out now; use stateful forwarding as it works reliably
        # even for UDP2TCP
        if (!t_relay()) {
                sl_reply_error();
        };
}

---------------------------------ser.cfg 
ends------------------------------

Any help/suggestion is highly appreciated.

Regards
Mukesh


_______________________________________________
Serusers mailing list
<A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Serusers@lists.iptel.org" target=_blank>Serusers@lists.iptel.org</A>
<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.iptel.org/mailman/listinfo/serusers" target=_blank>http://lists.iptel.org/mailman/listinfo/serusers</A>

  
    </PRE></BLOCKQUOTE><PRE>_______________________________________________
Serusers mailing list
<A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Serusers@lists.iptel.org" target=_blank>Serusers@lists.iptel.org</A>
<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.iptel.org/mailman/listinfo/serusers" target=_blank>http://lists.iptel.org/mailman/listinfo/serusers</A>

  </PRE></BLOCKQUOTE><PRE><HR width="90%" SIZE=4>
_______________________________________________
Serusers mailing list
<A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Serusers@lists.iptel.org" target=_blank>Serusers@lists.iptel.org</A>
<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.iptel.org/mailman/listinfo/serusers" target=_blank>http://lists.iptel.org/mailman/listinfo/serusers</A>
  </PRE></BLOCKQUOTE></SPAN></DIV>
  <DIV></DIV></DIV><BR>_______________________________________________<BR>Serusers 
  mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</A> <BR><A 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="http://lists.iptel.org/mailman/listinfo/serusers" 
  target=_blank>http://lists.iptel.org/mailman/listinfo/serusers</A><BR><BR><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>