sir,<br>
i am install ser sucessfully and&nbsp; my two user connect and&nbsp;
they can talk easilly using xlite(softphone),but i have faced one
problem that i could not store the information about call information
in acc table of ser database.<br>
i store the user location information in the database but not call
inforation.i load all the module which is needed to accounting table
such as(acc &amp;tm).<br>
<br>
i am sending my configuration file.<br>
<br>



<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Kate, the KDE Advanced Text Editor">

<pre>#
# <span style="color: rgb(0, 128, 0);">$</span>Id: ser.cfg,v <a href="http://1.25.2.1">1.25.2.1</a> 2005/02/18 14:30:44 andrei Exp <span style="color: rgb(0, 128, 0);">$</span>
#
# simple quick-start config script
#

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

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

/* Uncomment these lines to enter debugging <span style="color: rgb(0, 0, 255);"><b><i>mode</i></b></span> 
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=&quot;/tmp/ser_fifo&quot;
#SER_SQL_URI=&quot;mysql:<span style="color: rgb(128, 128, 128);"><i>//ser:heslo@localhost/ser&quot;</i></span>
# ------------------ module <b>loading</b> ----------------------------------

# Uncomment this if you want to <b>use</b> SQL database
loadmodule &quot;/usr/local/ser-0.9.6/modules/mysql/mysql.so&quot;

loadmodule &quot;/usr/local/ser-0.9.6/modules/sl/sl.so&quot;
loadmodule &quot;/usr/local/ser-0.9.6/modules/tm/tm.so&quot;
loadmodule &quot;/usr/local/ser-0.9.6/modules/rr/rr.so&quot;
loadmodule &quot;/usr/local/ser-0.9.6/modules/maxfwd/maxfwd.so&quot;
loadmodule &quot;/usr/local/ser-0.9.6/modules/usrloc/usrloc.so&quot;
loadmodule &quot;/usr/local/ser-0.9.6/modules/registrar/registrar.so&quot;
loadmodule &quot;/usr/local/ser-0.9.6/modules/textops/textops.so&quot;

# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule &quot;/usr/local/ser-0.9.6/modules/auth/auth.so&quot;
loadmodule &quot;/usr/local/ser-0.9.6/modules/auth_db/auth_db.so&quot;
loadmodule &quot;/usr/local/ser-0.9.6/modules/acc/acc.so&quot;
# ----------------- setting module-specific parameters ---------------

# -- usrloc params --

#modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,   0)

# Uncomment this if you want to <b>use</b> SQL database 
# for persistent storage and comment the previous line
modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)

# -- auth params --
# Uncomment if you are using auth module
#
modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)
#
# If you <b>set</b><span style="color: rgb(128, 0, 0);"> </span>&quot;calculate_ha1&quot; parameter to yes (which true <span style="color: rgb(0, 0, 255);"><b><i>in</i></b></span> this config), 
# uncomment also the following parameter)
#
modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;<b>password</b><span style="color: rgb(255, 0, 0);"><i>&quot;)</i></span>

# -- rr params --
# add value to ;lr param to make some <span style="color: rgb(0, 0, 255);"><b><i>broken</i></b></span> UAs happy
modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)

# -- acc params --
# <b>set</b><span style="color: rgb(128, 0, 0);"> </span>the reporting <b>log</b> level
modparam(&quot;acc&quot;, &quot;log_level&quot;, 1)
# number of flag, which will be used for accounting; if a message is
# labeled with this flag, its completion <b>status</b> will be reported
modparam(&quot;acc&quot;, &quot;log_flag&quot;, 1 )

modparam(&quot;usrloc|acc|auth_db|group|msilo|uri&quot;,&quot;db_url&quot;,&quot;mysql:<span style="color: rgb(128, 128, 128);"><i>//ser:heslo@localhost/ser&quot;)</i></span>


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

# <b>main</b> routing logic

route{

        # initial sanity checks -- messages with
        # max_forwards==0, or excessively long requests
        if (!mf_process_maxfwd_header(&quot;10&quot;)) {
                sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);
                break;
        };
        if (<b>msg</b>:len &gt;=  <span style="color: rgb(128, 0, 128);">2048</span> ) {
                sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;);
                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 <b>entities</b>
        # <b>use</b> different transport protocol
        if (!method==&quot;REGISTER&quot;) record_route();        
         setflag(1);
        # subsequent messages withing a dialog should take the
        # <b>path</b> determined by record-routing
        if (loose_route()) {
                # mark routing logic <span style="color: rgb(0, 0, 255);"><b><i>in</i></b></span> request
                append_hf(&quot;P-hint: rr-enforced\r\n&quot;); 
                route(1);
                break;
        };

        if (!uri==myself) {
                # mark routing logic <span style="color: rgb(0, 0, 255);"><b><i>in</i></b></span> request
                append_hf(&quot;P-hint: outbound\r\n&quot;); 
                route(1);
                break;
        };

        # if the request is for other domain <b>use</b> UsrLoc
        # (<span style="color: rgb(0, 0, 255);"><b><i>in</i></b></span> case, it does not work, use the following command
        # with proper names and addresses <span style="color: rgb(0, 0, 255);"><b><i>in</i></b></span> it)
        if (uri==myself) {

                if (method==&quot;REGISTER&quot;) {

# Uncomment this if you want to <b>use</b> digest authentication
                        if (!www_authorize(&quot;<a href="http://192.168.1.7">192.168.1.7</a>&quot;, &quot;subscriber&quot;)) {
                                www_challenge(&quot;<a href="http://192.168.1.7">192.168.1.7</a>&quot;, &quot;0&quot;);
                                break;
                        };
                        setflag(1);
                        <b>save</b>(<span style="color: rgb(255, 0, 0);"><i>&quot;location&quot;</i></span>)<span style="color: rgb(0, 128, 0);">;</span>
                        record_route();
                        break;
                };

                lookup(&quot;<b>alias</b><span style="color: rgb(128, 0, 0);">es&quot;);</span>
                if (!uri==myself) {
                        append_hf(&quot;P-hint: outbound <b>alias</b><span style="color: rgb(128, 0, 0);">\r\n&quot;); </span>
                        route(1);
                        break;
                };

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

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

</pre><br>
<br>
<br>
<br>
<br>
i am waiting for ur replly<br>
<br>
Regards<br>
aman sachdeva<br>
<a href="mailto:sachdeva.aman@gmail.com">sachdeva.aman@gmail.com</a><br>