I am trying to understand the logging with the accounting module. I don't understand the concept used with the flags. I'm trying to use the MySQL for logging completed and failed calls. I can get entries like log(1,"register request for domain"); to log something to syslog but I can't get a successfull call logged into the MySQL tables. So far I've been doing trial and error and haven't had any success.
Can someone send me a simple config demostrating the concept of the flags or explain it to me please? I'm using ser 0.8.12 with MySQL 4.0
Bill Dunn
First, please see : http://www.iptel.org/ser/doc/seruser/seruser.html#AEN892
bogdan
Bill wrote:
I am trying to understand the logging with the accounting module. I don't understand the concept used with the flags. I'm trying to use the MySQL for logging completed and failed calls. I can get entries like log(1,"register request for domain"); to log something to syslog but I can't get a successfull call logged into the MySQL tables. So far I've been doing trial and error and haven't had any success.
Can someone send me a simple config demostrating the concept of the flags or explain it to me please? I'm using ser 0.8.12 with MySQL 4.0
Bill Dunn
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Been there done that.
Using some examples I've seen I never get any successful calls logged to the acc table in the database. I've never seen anything in the missed_calls table either. I can use "acc_db_request" to record an entry though.
Bill Dunn
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
About your mysql accounting you must set: let say for example : modparam("acc", "db_flag", 1 ) then try to use setflag(1); and look into your mysql acc table... It's work fine on my ser... Waiting for feedback :)
On Tuesday 22 June 2004 17:16, VCI Help Desk wrote: Been there done that.
Using some examples I've seen I never get any successful calls logged
to the acc table in the database. I've never seen anything in the missed_calls table either. I can use "acc_db_request" to record an entry though.
Bill Dunn
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
- --
Regards, Kamen Sharlandjiev System Administrator NetBG Communication Tel: +359 2 962 43 52 +359 2 962 53 93 - -- Public GPG key at: http://pgp.mit.edu pub 1024D/C6347D3D 2003-03-19 Kamen Sharlandjiev (Comment) stone@netbg.com Key fingerprint = D6AA 55BD F0CB FC6B 8C22 A13B 91D1 55C3 C634 7D3D
I'm sure it works properly but I don't understand the concept. How does the db_flag relate to log_flag? This is what I have now. At the moment I don't have any setflags anywhere in my config. From a previous test I got the most results bny setting setflag(5) near the bottom of the config. But it still didn't log a successful call. Using the settings I have below what would setflag(3) do on a successful call?
modparam("acc", "log_missed_flag", 3) modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "db_flag", 2) modparam("acc", "db_missed_flag", 3)
Bill Dunn
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
HI again, the log_flag will report on your syslog the db_flag on your mysql. I suppose your problem with log a successful call is because your ser didn't receive the BYE message or I'm wrong? If this is the problem... you must use a record_route() function to force BYE messages come to your server. about the relates with db_flag and log_flag... look into source code :) i cannot tell you :) it's just work... thats is enough for me.
On Tuesday 22 June 2004 17:46, VCI Help Desk wrote: I'm sure it works properly but I don't understand the concept. How does the db_flag relate to log_flag? This is what I have now. At the moment I don't have any setflags anywhere in my config. From a previous test I got the most results bny setting setflag(5) near the bottom of the config. But it still didn't log a successful call. Using the settings I have below what would setflag(3) do on a successful call?
modparam("acc", "log_missed_flag", 3) modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "db_flag", 2) modparam("acc", "db_missed_flag", 3)
Bill Dunn
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
- --
Regards, Kamen Sharlandjiev System Administrator NetBG Communication Tel: +359 2 962 43 52 +359 2 962 53 93 - -- Public GPG key at: http://pgp.mit.edu pub 1024D/C6347D3D 2003-03-19 Kamen Sharlandjiev (Comment) stone@netbg.com Key fingerprint = D6AA 55BD F0CB FC6B 8C22 A13B 91D1 55C3 C634 7D3D
first of all you enable mysql accounting in the Makefile of the acc module, and then recompile ser.
klaus
Bill wrote:
I am trying to understand the logging with the accounting module. I
don't understand the concept used with the flags. I'm trying to use the MySQL for logging completed and failed calls. I can get entries like log(1,"register request for domain"); to log something to syslog but I can't get a successfull call logged into the MySQL tables. So far I've been doing trial and error and haven't had any success.
Can someone send me a simple config demostrating the concept of the
flags or explain it to me please? I'm using ser 0.8.12 with MySQL 4.0
Bill Dunn
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers