[Kamailio-Users] log_facility usage with accounting module

Daniel-Constantin Mierla miconda at gmail.com
Thu Jun 4 13:46:52 CEST 2009


Hello,

On 06/03/2009 06:05 PM, Örn Arnarson wrote:
> Hi,
>
> I am trying to get all billing information from the acc module logged
> to a file as opposed to a database.
>   
> It seems to me that the way to do that is via syslog (although I'd
> much prefer just logging directly to a file).
>   
check if the flatstore module is not more suitable in this case -- for 
acc module use this db driver instead of mysql:
http://kamailio.org/docs/modules/1.5.x/db_flatstore.html

Cheers,
Daniel


> So, to do this, i added a LOCAL6 facility in /etc/syslog.conf, and
> added the following line to kamailio.cfg:
> modparam("acc", "log_facility", "LOG_LOCAL6")
>
> The general log_facility of kamailio is LOG_LOCAL7:
> log_facility=LOG_LOCAL7
>
> These are the only two mentions of LOG_LOCAL6 and LOG_LOCAL7 in the
> whole configuration file. However, I get _all_ the information in both
> files (that is, if I have debug set to a specific level, my accounting
> log also gets flooded with these debug messages).
>
> Why is this? The config line specifies LOG_LOCAL6 to be a log for the
> accounting module...
>
> Furthermore, I want all INVITES to be logged, regardless of an ACK or
> CANCEL, but only invites where an ACC is received are logged. If I
> enable log cancel, I see the CANCEL messages, but not the INVITES,
> which is rather nonsensical.
>
> Any help would be much appreciated.
>
> Best regards,
> Örn
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

-- 
Daniel-Constantin Mierla
http://www.asipto.com/




More information about the Users mailing list