Hi Nick,
Here is how the top of my cfg looks now:
debug=3 # debug level (cmd line: -dddddddddd) fork=no log_stderror=no # (cmd line: -E) log_facility=LOG_LOCAL6
I also added this line to syslog.conf: # Save openser accounting logs to openseracc.log local6.* -/var/log/openseracc.log
Previously there was information written to /var/log/openser.log which contained mostly things that happened on start up. It seems that openser logs to that file by default even if there is no log_facility set in the cfg file. Now all those messages are instead being put in /var/log/openseracc.log. However, still there are no accounting messages logged.
Any ideas?
Thanks again,
Daniel
nick wrote:
Daniel Burge wrote:
Hello,
I'm trying to configure the accounting module to log messages to syslog by following the instructions here:
http://www.openser.org/docs/modules/1.1.x/acc.html
I've included these lines where appropriate according to the example on that page. The meaningful parts of the code are as follows:
loadmodule "/usr/local/lib64/openser/modules/acc.so" modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1)
route { if (method=="INVITE" || method=="BYE" || method=="CANCEL") { setflag(1); /* set for accounting (the same value as in log_flag!) } }
However this is not causing any information to be logged to syslog.
Any idea?
Thanks in advance,
Daniel
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Make sure you put a line at the top of your config like:
log_facility=LOG_LOCAL6
The number at the end can vary, it depends on what Log facilities you have "free" on your system.