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
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
make a goodle on this.. I bet you will find ALOT on it. since this is a very often asked question.
but a small hint.. recordroute.
-Atle
* Haipeng Jin haipengj@qualcomm.com [041020 02:39]:
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
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
I've got acc working with MySQL. The acc module params in my ser.cfg look like this.
modparam("acc", "db_flag", 1) modparam("acc", "db_missed_flag", 1) modparam("acc", "log_fmt", "cdfimorstup") modparam("acc", "log_level", 1) modparam("acc", "failed_transactions", 1) modparam("acc", "report_cancels", 1) modparam("acc", "report_ack", 0)
Regards, Paul
--- Atle Samuelsen clona@camaro.no wrote:
make a goodle on this.. I bet you will find ALOT on it. since this is a very often asked question.
but a small hint.. recordroute.
-Atle
- Haipeng Jin haipengj@qualcomm.com [041020 02:39]:
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
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
Hi Haipeng,
My guess is you haven't compile mysql support into the acc module. Please check modules/acc/Makefile, see the comments and enable mysql. Recompile and try again.
Best regards, Marian Dumitru
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