Figured out the problem by myself. Basically, I need to recompile ACC module and enable SQL support in the Makefile.
But another question: Is the following enough to enable db accounting: modparam("acc", "db_log", 2) ...
route[0] {
... #before relay setflag(2);
... }
It seems that INVITE and ACK are accounted in the database, but when I tried to view the accounting log via SERWEB, it shows "no calls". What is happening?
I am able to view the missed_calls via SERWEB because i have used "acc_db_request" if call is missed, do I need to explicitly call "acc_db_request" if I want to view the normal calls in SERWEB?
Thanks,
Haipeng
At 04:45 PM 10/19/2004, Haipeng Jin wrote:
Hi,
I have encountered the following problem when using ACC module:
In my ser.cfg, I used "loadmodule /modules/acc.so" to load the acc module, I then included: modparam("acc", "log_flag", 1) modparam("acc", "log_level", 1) ... route[0] { ... setflat(1); ... } The module seems to be loaded all right and I can see relevant logs in syslog but not in MySQL database.
First Problem: When I tried to add the following line in ser.cfg: modparam("acc", "db_url", "sql://ser:pass@localhost/ser")
ser will not start and it complains that parameter "db_url" not found in module <acc>.
Second problem: When I tried to log missed calls into db using: acc_db_request("404 not found", "missed_calls");
ser will not start and it complains "unknown command..." even though the ACC module is loaded.
Can anyone provide some help on these two questions?
Thanks,
Haipeng
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers