<!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>
&gt; I am trying to get all billing information from the acc module logged<br>
&gt; to a file as opposed to a database.<br>
&gt; It seems to me that the way to do that is via syslog (although I'd<br>
&gt; much prefer just logging directly to a file).<br>
&gt;<br>
&gt; So, to do this, i added a LOCAL6 facility in /etc/syslog.conf, and<br>
&gt; added the following line to kamailio.cfg:<br>
&gt; modparam("acc", "log_facility", "LOG_LOCAL6")<br>
&gt;<br>
&gt; The general log_facility of kamailio is LOG_LOCAL7:<br>
&gt; log_facility=LOG_LOCAL7<br>
&gt;<br>
&gt; These are the only two mentions of LOG_LOCAL6 and LOG_LOCAL7 in the<br>
&gt; whole configuration file. However, I get _all_ the information in both<br>
&gt; files (that is, if I have debug set to a specific level, my accounting<br>
&gt; 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>&gt; Why is this? The config line specifies LOG_LOCAL6 to be a log for the<br>
&gt; accounting module...<br>
&gt;<br>
&gt; Furthermore, I want all INVITES to be logged, regardless of an ACK or<br>
&gt; CANCEL, but only invites where an ACC is received are logged. If I<br>
&gt; enable log cancel, I see the CANCEL messages, but not the INVITES,<br>
&gt; 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>