Hi SER users <br> I am trying to test SER+FreeRadius (for accounting) and iam getting the follwing errors in log messages<br><br><span style="text-decoration: underline;">ERROR MESSAGES:-(</span><br style="text-decoration: underline;">
<br>localhost /usr/local/sbin/ser[3503]: Maxfwd module- initializing<br>localhost ser[3503]: ERROR: acc: can't get code for the Sip-Translated-Request-URI attribute<br>localhost ser[3503]: init_mod(): Error while initializing module acc
<br> <br>even then i changed the Attribute i am getting the same error please help regard this issue<br> <br><span style="text-decoration: underline;">my SER.cfg looks like this </span><br style="text-decoration: underline;">
<br>loadmodule "/usr/local/lib/ser/modules/acc.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> # -- acc params --<br><br># set the reporting log level<br>modparam("acc", "log_level", 1)<br># number of flag, which will be used for accounting; if a message is
<br># labeled with this flag, its completion status will be reported<br>modparam("acc", "radius_flag", 1 )<br>modparam("acc", "radius_missed_flag", 2)<br>modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
<br>modparam("acc", "service_type", 15)<br># -- usrloc params --<br><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", "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")<br><br># -- rr params --<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 >= 2048 ) {
<br> sl_send_reply("513", "Message too big");<br> break;<br> };<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> if (!method=="REGISTER") record_route(); <br><br> # subsequent messages withing a dialog should take the
<br> # path determined by record-routing<br> if (loose_route()) {<br> # mark routing logic in request<br> append_hf("P-hint: rr-enforced\r\n"); <br> route(1);<br> break;<br> };
<br><br> if (!uri==myself) {<br> # mark routing logic in request<br> append_hf("P-hint: outbound\r\n"); <br> route(1);<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> if (uri==myself) {<br><br> if (method=="REGISTER") {<br><br># Uncomment this if you want to use digest authentication
<br> if (!www_authorize("<a href="http://81.21.34.37">81.21.34.37</a>", "subscriber")) {<br> www_challenge("<a href="http://81.21.34.37">81.21.34.37</a>", "0");
<br> break;<br> };<br><br> save("location");<br> break;<br> };<br><br> lookup("aliases");<br> if (!uri==myself) {<br> append_hf("P-hint: outbound alias\r\n");
<br> route(1);<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> append_hf("P-hint: usrloc applied\r\n"); <br> route(1);<br>}<br><br>route[1] <br>{<br> # send it out now; use stateful forwarding as it works reliably<br>
# even for UDP2TCP<br> if (!t_relay()) {<br> sl_reply_error();<br> };<br>}<br><br><br><br><br><br>