[Serusers] MySql Accounting
Hendrik Scholz
hendrik.scholz at freenet-ag.de
Thu Jun 7 09:59:16 CEST 2007
Hi!
The way accounting works is that you tag 'calls' with the accounting
flag and the module then does the magic.
In the default config you find this:
flags
FLAG_ACC : 1,
[...]
modparam("acc_db", "log_flag", "FLAG_ACC")
[...]
route {
[...]
if (method=="INVITE" && @to.tag=="") {
setflag(FLAG_ACC);
}
[...]
A symbolic FLAG_ACC is specified. acc_db is told to look
for that FLAG_ACC. Inside the route part
a message is tagged (setflag) to enable logging.
Your config reads:
modparam("acc_syslog", "log_flag", "acc.log")
modparam("acc_syslog", "log_missed_flag", "acc.missed");
log_flag and log_missed_flag are no log files or such!
These are the flags that could be used to tag your 'calls' with.
Change the top modparam() back to "FLAG_ACC" and you should
see logged calls via syslog.
You then need to configure your syslogd to process the log
entries properly.
Cheers,
Hendrik
--
Hendrik Scholz
VoIP Systems Engineer
----------------------------------------------------------------------------
Telefon: + 49 (0) 431 90 20 552
Telefax: + 49 (0) 431 90 20 559
E-Mail: hendrik.scholz at freenet.ag
Website: www.freenet.de; www.mobilcom.de
----------------------------------------------------------------------------
freenet Cityline GmbH
Ein Unternehmen der freenet AG
Hamburger Chaussee 2-4
24114 Kiel
----------------------------------------------------------------------------
Geschäftsführer: Eckhard Spoerr, Axel Krieger
Amtsgericht Kiel, HRB 6202
More information about the sr-users
mailing list