Please keep cc-ing to the mailing list so the others can find the answer if they get into the same problem. Comments inline.
On 9/29/2003 12:50 PM, marky wrote:
Ok
but when i am adding the line : modparam("acc", "db_flag", 1 )
I get this in my debug output... 0(443) set_mod_param_regex: acc matches module acc 0(443) set_mod_param_regex: found <log_level> in module acc [/usr/home/mark/lib /ser/modules/acc.so] 0(443) set_mod_param_regex: acc matches module acc 0(443) set_mod_param_regex: found <log_flag> in module acc [/usr/home/mark/lib/ ser/modules/acc.so] 0(443) set_mod_param_regex: acc matches module acc 0(443) set_mod_param_regex: found <log_missed_flag> in module acc [/usr/home/ma rk/lib/ser/modules/acc.so] 0(443) set_mod_param_regex: acc matches module acc 0(443) set_mod_param_regex: found <report_cancels> in module acc [/usr/home/mar k/lib/ser/modules/acc.so] 0(443) set_mod_param_regex: acc matches module acc 0(443) set_mod_param_regex: parameter <db_flag> not found in module <acc> 0(443) parse error (94,30-31): Can't set module parameter
As I told you, the acc module must be compiled with database/SQL support. You need to uncomment a line inside the Makefile of the acc module (see my previous mail). Go the the base directory of the SER sources (e.g., /usr/local/src/sip_router), compile the module with 'make modules modules=modules/acc' and then copy the acc.so over the old one (it should be in /usr/lib/ser/modules or /usr/local/lib/ser/modules), and try again.
Best regards, Daniel
......... ......... .........
ERROR: bad config file (2 errors)
Thats the problem.
Best regards,
Mark
MC101-UANIC
----- Original Message ----- From: "Daniel-Constantin Mierla" Daniel-Constantin.Mierla@fokus.fraunhofer.de To: "marky" mark@clubnet.lviv.ua Cc: serusers@lists.iptel.org Sent: Monday, September 29, 2003 1:21 PM Subject: Re: [Serusers] mod acc problem
Hello, You set only the log_flag, so the accounting is done into system log file (check /var/log/messages). If you didn't compile it with database support, you need to take the sources from cvs (http://www.iptel.org/ser/cvs -- here are some guidelines) and recompile the acc module after setting the proper flag into Makefile inside the acc directory -- if you have put the sources into /usr/local/src/sip_router the the directory of the acc module is /usr/local/src/sip_router/modules/acc/. The accounting flag for use with database is 'db_flag', so you need a modparam("acc", "db_flag", 1 ) in your config file, too.
Best regards, Daniel
On 9/28/2003 2:55 PM, marky wrote:
Hi All !
I 've installed the SER version 0.8.11 it works OK but i cant implement some of commands.
For example when i add
loadmodule "/usr/home/mark/lib/ser/modules/acc.so"
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1 )
acc_log_request("some comment","acc");
to my ser.cgf , there is nothing in acc table of the ser db.
Commands are taken from acc.pdf - documentation written by Jiri Kuthan
I ll be grateful for any help.
Thanks in advance
Mark Chehovsky
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hello !
Thanks for help with mod acc compiling with mysql. Now its starting with no errors.
When i looked in acc table of ser database i saw that only CANCELs are stored...
Here is a part of config :
modparam("acc", "log_flag", 1 ) modparam("acc","log_fmt","cdfimorstup") modparam("acc", "log_missed_flag", 3 ) modparam("acc", "report_cancels", 1 ) modparam("acc", "db_flag", 1 )
route{
rewritehostport("sipauth.deltathree.com:5060"); setflag(1); if (loose_route()) { t_relay(); break; }; if (method=="INVITE" || method=="BYE" ){ record_route(); setflag(1); }; if (!t_relay()) { sl_reply_error(); break; };
}
There are no errors simply only cancels are written in acc table.
Could you help ?
Best regards, Mark
Hello,
On 9/30/2003 12:26 PM, marky wrote:
Hello !
Thanks for help with mod acc compiling with mysql. Now its starting with no errors.
When i looked in acc table of ser database i saw that only CANCELs are stored...
was there any call established and clearly terminated (with a BYE)? The CANCEL is sent before the call is answered (before a 200OK response is sent by the destination and received by origin). Are these calls reported to system log?
Best regards, Daniel
Here is a part of config :
modparam("acc", "log_flag", 1 ) modparam("acc","log_fmt","cdfimorstup") modparam("acc", "log_missed_flag", 3 ) modparam("acc", "report_cancels", 1 ) modparam("acc", "db_flag", 1 )
route{
rewritehostport("sipauth.deltathree.com:5060"); setflag(1); if (loose_route()) { t_relay(); break; }; if (method=="INVITE" || method=="BYE" ){ record_route(); setflag(1); }; if (!t_relay()) { sl_reply_error(); break; };
}
There are no errors simply only cancels are written in acc table.
Could you help ?
Best regards, Mark
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers