Hello,
I'm trying to migrate ser-0.9.x to the current sr-3.1.x and right now trying
to figure out the acc functions/parameters. I used to use "acc_db_request" from
acc module, but it's not working using acc_db and acc_syslog in conjuntion.
acc_db has acc_db_request[0,1] but are not callable from the configuration
file, and acc_syslog has acc_db_request, but doesn't matter if i load this
module, the function isn't found...
loading modules under /usr/lib/siprouter/modules:/usr/lib/siprouter/modules_s
0(23455) : <core> [cfg.y:3412]: parse error in config file /tmp/ser.cfg,
line 358, column 74: unknown command, missing loadmodule?
line 358 is:
acc_db_request("480 Offline User",
"missed_calls");
I would appreciate if you can guide me through the ACC documentation or
changes that it has suffered.. I tried to track the git log.. but many changes
since my old ser :(
Thank you
Claudio
pd: FYI i did this modifications to adjust my acc settings:
# Accounting module
+loadmodule "acc_syslog.so"
loadmodule "acc_db.so"
# ----------------- setting module-specific parameters ---------------
@@ -139,15 +140,13 @@
# number of flag, which will be used for accounting; if a message is
# labeled with this flag, its completion status will be reported
# modparam("acc", "log_flag", 1 )
-modparam("acc_db", "log_level", 1)
+modparam("acc_syslog", "log_level", 1)
# MySQL acc params
modparam("acc_db", "db_url",
"mysql://ser:heslo@localhost/ser")
-modparam("acc_db", "db_flag", 2)
-modparam("acc_db", "db_missed_flag", 3)
+modparam("acc_db", "log_flag", 2)
+modparam("acc_db", "log_missed_flag", 3)
modparam("acc_db", "log_fmt", "miocfspD")
-# Acc time set to localtime (1)
-modparam("acc_db", "db_localtime", 1)