<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Lucida Console'; font-size:9pt; font-weight:400; font-style:normal;">On Mittwoch, 3. Juni 2009, Örn Arnarson wrote:<br>
> I am trying to get all billing information from the acc module logged<br>
> to a file as opposed to a database.<br>
> It seems to me that the way to do that is via syslog (although I'd<br>
> much prefer just logging directly to a file).<br>
><br>
> So, to do this, i added a LOCAL6 facility in /etc/syslog.conf, and<br>
> added the following line to kamailio.cfg:<br>
> modparam("acc", "log_facility", "LOG_LOCAL6")<br>
><br>
> The general log_facility of kamailio is LOG_LOCAL7:<br>
> log_facility=LOG_LOCAL7<br>
><br>
> These are the only two mentions of LOG_LOCAL6 and LOG_LOCAL7 in the<br>
> whole configuration file. However, I get _all_ the information in both<br>
> files (that is, if I have debug set to a specific level, my accounting<br>
> log also gets flooded with these debug messages).<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Hi Örn,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>probably your syslog configuration is not correct in this case. Check syslog.conf if its contains the necessary logic to separate the LOCAL_6 content to another file.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> Why is this? The config line specifies LOG_LOCAL6 to be a log for the<br>
> accounting module...<br>
><br>
> Furthermore, I want all INVITES to be logged, regardless of an ACK or<br>
> CANCEL, but only invites where an ACC is received are logged. If I<br>
> enable log cancel, I see the CANCEL messages, but not the INVITES,<br>
> which is rather nonsensical.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Do you set the failed_transaction flag as well? If you set this it should also account the failed INVITEs i think.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Henning</p></body></html>