<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>database would be perfect, but the file is ok as well.</p>
    <p>Right now, I have accounting in syslog only and I think this is
      because they are just transaction logs, ie.</p>
    <p>acc_log_request(): ACC: transaction answered:
      timestamp=1601877602;method=BYE</p>
    <p><br>
    </p>
    <p>I got also some missed calls, but no answered ones.</p>
    <p><br>
    </p>
    <p>Thank you, Regards, Jan<br>
    </p>
    <div class="moz-cite-prefix">On 05. 10. 20 11:09, Daniel-Constantin
      Mierla wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:01eb30a5-10f1-7408-90f0-61d76d297b38@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hello,</p>
      <p>do you want dialog-based cdrs to both database and syslog? Or
        just to database, but you get them in syslog only?</p>
      <p>Cheers,<br>
        Daniel<br>
      </p>
      <div class="moz-cite-prefix">On 04.10.20 11:08, Jan Rozhon wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:53c9103d-b460-a403-b00d-865fffd10abe@gmail.com">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <p>Guys thank you, by trial and error, I got the solution to
          logging to syslog. On this one particular machine, I also have
          to add the following line BEFORE the actual definition of
          local7 output:</p>
        <p><tt>/etc/rsyslog.conf</tt><tt><br>
            local7.none /var/log/syslog</tt></p>
        <p>So I guess, this is not related to kamailio, rather it has
          something to do with particular rsyslog/systemd version.</p>
        <p>Where I am stuck, however, is the CDR logging. I went through
          the acc module documentation and see no reason why it is not
          logging to database or ignores cdr_facility.</p>
        <p>My tip is, I am missing something with the flags, but cant
          find out what it is. That would explain acc messages in syslog
          (only transaction-based) and empty cdr.log/acc_cdrs table for
          dialog-based cdrs. In case of default kamailio.cfg (with the
          dialog module loaded and acc module settings as previously
          mentioned), do I need to set any special flags to get
          dialog-based cdrs?</p>
        <p>Thank you, once again. Regards, Jan<br>
        </p>
        <p><br>
        </p>
        <div class="moz-cite-prefix">Dne 03.10.2020 v 22:31 Joel Serrano
          napsal(a):<br>
        </div>
        <blockquote type="cite"
cite="mid:CAMtXxQn5XcX9WByNz6TQxJQoFyb=WjyBR62Bi4AAUfQig+u5rQ@mail.gmail.com">
          <meta http-equiv="content-type" content="text/html;
            charset=UTF-8">
          <div dir="auto">Make sure it’s not systemd who is logging
            there and not kamailio...</div>
          <div dir="auto"><br>
          </div>
          <div><br>
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">On Sat, Oct 3, 2020 at
                10:19 Henning Westerholt <<a
                  href="mailto:hw@skalatan.de" moz-do-not-send="true">hw@skalatan.de</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
                <br>
                <br>
                <br>
                Strange problem. If you tried the obvious stuff already
                (like rebooting etc..) I would try with "logger" to
                reproduce the problem, to see if its something related
                to kamailio or the logging system/machine.<br>
                <br>
                <br>
                <br>
                Cheers,<br>
                <br>
                <br>
                <br>
                Henning<br>
                <br>
                <br>
                <br>
                -- <br>
                <br>
                Henning Westerholt – <a
                  href="https://skalatan.de/blog/" rel="noreferrer"
                  target="_blank" moz-do-not-send="true">https://skalatan.de/blog/</a><br>
                <br>
                Kamailio services – <a href="https://gilawa.com"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">https://gilawa.com</a> <br>
                <br>
                <br>
                <br>
                -----Original Message-----<br>
                <br>
                From: sr-users <<a
                  href="mailto:sr-users-bounces@lists.kamailio.org"
                  target="_blank" moz-do-not-send="true">sr-users-bounces@lists.kamailio.org</a>>
                On Behalf Of Jan Rozhon<br>
                <br>
                Sent: Wednesday, September 30, 2020 9:35 AM<br>
                <br>
                To: <a href="mailto:sr-users@lists.kamailio.org"
                  target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                <br>
                Subject: [SR-Users] Logging problem<br>
                <br>
                <br>
                <br>
                Hi,<br>
                <br>
                <br>
                <br>
                sorry for quite stupid and newbie questions, but I am
                out of ideas.<br>
                <br>
                <br>
                <br>
                1. On one of my Debian 10 servers I am unable to stop
                logging kamailio messages to /var/log/syslog. It is
                funny, because I have 3 more servers where it works but
                on this one, it doesnt and no matter what I try it still
                keeps sending logs to syslog (and to the file
                configured).<br>
                <br>
                <br>
                <br>
                My related configs:<br>
                <br>
                <br>
                <br>
                /etc/kamailio/kamailio.cfg<br>
                <br>
                <br>
                <br>
                log_stderror=no<br>
                <br>
                log_facility=LOG_LOCAL7<br>
                <br>
                <br>
                <br>
                <br>
                <br>
                /etc/rsyslog.conf<br>
                <br>
                <br>
                <br>
                local6.*                       
                /var/log/kamailio/cdr.log<br>
                <br>
                local7.*                       
                /var/log/kamailio/kamailio.log<br>
                <br>
                <br>
                <br>
                <br>
                <br>
                /etc/rsyslog.d/kamailio.conf<br>
                <br>
                <br>
                <br>
                if $programname contains 'kamailio' then
                /var/log/kamailio/kamailio.log & stop<br>
                <br>
                <br>
                <br>
                <br>
                <br>
/etc/systemd/system/multi-user.target.wants/kamailio.service<br>
                <br>
                <br>
                <br>
                SyslogIdentifier=kamailio<br>
                <br>
                <br>
                <br>
                <br>
                <br>
                2. It is probably related to 1. I am unable to get the
                CDRs logged to anything else but /var/log/syslog. I
                tried database (nothing) and setting cdr_facility and
                again nothing. It just keeps sending everything to
                /var/log/syslog.<br>
                <br>
                <br>
                <br>
                Related configs:<br>
                <br>
                <br>
                <br>
                modparam("acc", "cdr_enable", 1)<br>
                <br>
                modparam("acc", "cdrs_table", "acc_cdrs")
                modparam("acc", "cdr_facility", "LOG_LOCAL6")<br>
                <br>
                <br>
                <br>
                <br>
                <br>
                Example output in syslog file:<br>
                <br>
                <br>
                <br>
                Sep 30 09:21:41 sip2 /usr/sbin/kamailio[1151]: NOTICE:
                {2 21 INVITE ZPZI7Hqytw} acc [acc.c:279]:
                acc_log_request(): ACC: call missed:<br>
                <br>
timestamp=1601450501;method=INVITE;from_tag=1GH5hGQxN;to_tag=QwcYFet;call_id=ZPZI7Hqytw;code=486;reason=Busy<br>
                <br>
                here;src_user=XXXXXXXXX;<br>
                <br>
                <br>
                <br>
                <br>
                <br>
                Is there something trivial I am missing?<br>
                <br>
                <br>
                <br>
                <br>
                <br>
                Thank you. Regards, Jan<br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                _______________________________________________<br>
                <br>
                Kamailio (SER) - Users Mailing List<br>
                <br>
                <a href="mailto:sr-users@lists.kamailio.org"
                  target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                <br>
                <a
                  href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                <br>
              </blockquote>
            </div>
          </div>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
        </blockquote>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla" moz-do-not-send="true">https://www.paypal.me/dcmierla</a></pre>
    </blockquote>
  </body>
</html>