sir,<br>
i am install ser sucessfully and my two user connect and
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 &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="/tmp/ser_fifo"
#SER_SQL_URI="mysql:<span style="color: rgb(128, 128, 128);"><i>//ser:heslo@localhost/ser"</i></span>
# ------------------ module <b>loading</b> ----------------------------------
# Uncomment this if you want to <b>use</b> SQL database
loadmodule "/usr/local/ser-0.9.6/modules/mysql/mysql.so"
loadmodule "/usr/local/ser-0.9.6/modules/sl/sl.so"
loadmodule "/usr/local/ser-0.9.6/modules/tm/tm.so"
loadmodule "/usr/local/ser-0.9.6/modules/rr/rr.so"
loadmodule "/usr/local/ser-0.9.6/modules/maxfwd/maxfwd.so"
loadmodule "/usr/local/ser-0.9.6/modules/usrloc/usrloc.so"
loadmodule "/usr/local/ser-0.9.6/modules/registrar/registrar.so"
loadmodule "/usr/local/ser-0.9.6/modules/textops/textops.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/ser-0.9.6/modules/auth/auth.so"
loadmodule "/usr/local/ser-0.9.6/modules/auth_db/auth_db.so"
loadmodule "/usr/local/ser-0.9.6/modules/acc/acc.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to <b>use</b> 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 <b>set</b><span style="color: rgb(128, 0, 0);"> </span>"calculate_ha1" 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("auth_db", "password_column", "<b>password</b><span style="color: rgb(255, 0, 0);"><i>")</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("rr", "enable_full_lr", 1)
# -- acc params --
# <b>set</b><span style="color: rgb(128, 0, 0);"> </span>the reporting <b>log</b> level
modparam("acc", "log_level", 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("acc", "log_flag", 1 )
modparam("usrloc|acc|auth_db|group|msilo|uri","db_url","mysql:<span style="color: rgb(128, 128, 128);"><i>//ser:heslo@localhost/ser")</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("10")) {
                sl_send_reply("483","Too Many Hops");
                break;
        };
        if (<b>msg</b>:len >= <span style="color: rgb(128, 0, 128);">2048</span> ) {
                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 <b>entities</b>
        # <b>use</b> different transport protocol
        if (!method=="REGISTER") 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("P-hint: rr-enforced\r\n");
                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("P-hint: outbound\r\n");
                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=="REGISTER") {
# Uncomment this if you want to <b>use</b> digest authentication
                        if (!www_authorize("<a href="http://192.168.1.7">192.168.1.7</a>", "subscriber")) {
                                www_challenge("<a href="http://192.168.1.7">192.168.1.7</a>", "0");
                                break;
                        };
                        setflag(1);
                        <b>save</b>(<span style="color: rgb(255, 0, 0);"><i>"location"</i></span>)<span style="color: rgb(0, 128, 0);">;</span>
                        record_route();
                        break;
                };
                lookup("<b>alias</b><span style="color: rgb(128, 0, 0);">es");</span>
                if (!uri==myself) {
                        append_hf("P-hint: outbound <b>alias</b><span style="color: rgb(128, 0, 0);">\r\n"); </span>
                        route(1);
                        break;
                };
                # native SIP destinations are handled using our USRLOC DB
                if (!lookup("location")) {
                        sl_send_reply("404", "Not Found");
                        break;
                };
        };
        setflag(1);
        append_hf("P-hint: usrloc applied\r\n");
        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>