<p dir="ltr">I've been working to try to get kamailio (4.1) to log every transaction to file, but can't seem to do it -- or even get it to reliably log. What the heck am i missing?</p>
<p dir="ltr">It seems Kamailio logs the first time i try it on a day, but then won't do it again no matter what variation of configs I try. </p>
<p dir="ltr">Is it something wrongly configured with flatstore? Permission issues? Any help/leads/hunches are greatly appreciated. </p>
<p dir="ltr">The following is my truncated test config</p>
<p dir="ltr">#!KAMAILIO</p>
<p dir="ltr">#!define DBURL "flatstore:/var/log/kamailio-acc"<br>
#!define FLT_ACC 1<br>
#!define FLT_ACCMISSED 2<br>
#!define FLT_ACCFAILED 3</p>
<p dir="ltr">(the config and load mod stuff)</p>
<p dir="ltr">modparam("acc", "log_level", 1)<br>
modparam("acc", "log_flag", FLT_ACC)<br>
modparam("acc", "log_missed_flag", FLT_ACCMISSED)<br>
modparam("acc", "log_facility", "LOG_LOCAL2") #confirmed in Ubuntu rsyslog LOG_LOCAL2 is configured<br>
modparam("acc", "failed_transaction_flag", FLT_ACCFAILED)<br>
modparam("acc", "db_url", DBURL)<br>
modparam("acc", "db_flag", FLT_ACC)<br>
modparam("acc", "db_missed_flag", FLT_ACCMISSED)</p>
<p dir="ltr">request_route {</p>
<p dir="ltr"> (non-invite request stuff)</p>
<p dir="ltr"> setflag(FLT_ACC);<br>
 setflag(FLT_ACCMISSED);<br>
 setflag(FLT_ACCFAILED);</p>
<p dir="ltr"> send_reply("420", "Test");<br>
 exit;</p>
<p dir="ltr">}</p>
<p dir="ltr">Ryan Brindley<br>
</p>