<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Hello,</p>
    <p>do you see cdr log on your syslog file? En CentOS is
      /var/log/messages</p>
    <p>If the answer is yes try this:</p>
    <p>create the cdr file: <br>
    </p>
    <p>touch /var/log/opensips/opensips.cdr</p>
    <p>restart rsyslog:</p>
    <p>systemctl restart rsyslog</p>
    <p>restart opensips:</p>
    <p>systemctl restart opensips<br>
    </p>
    <p>If OpenSIPs run with opensips user:</p>
    <p>chown -Rf opensips:opensips <span style="line-height: 1.5;
        background-color: transparent;">/var/log/opensips</span></p>
    <p><span style="line-height: 1.5; background-color: transparent;">Regards<br>
      </span></p>
    <pre class="moz-signature" cols="72">---
I'm SoCIaL, MayBe</pre>
    <div class="moz-cite-prefix">El 07/12/2020 a las 04:04,
      <a class="moz-txt-link-abbreviated" href="mailto:fun_yang@foxmail.com">fun_yang@foxmail.com</a> escribió:<br>
    </div>
    <blockquote type="cite"
      cite="mid:2020120717044959498614@foxmail.com">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <style>body { line-height: 1.5; }body { font-size: 14px; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style>
      <div><span></span>
        <div>HI all !</div>
        <div>i use opensips cdr as follows, but it have nothing in <span
            style="line-height: 1.5; background-color: transparent;">/var/log/opensips</span><span
            style="line-height: 1.5; background-color: transparent;">/opensips.cdr</span></div>
        <div><span style="line-height: 1.5; background-color:
            transparent;">i can't find any errors in log</span></div>
        <div><span style="background-color: transparent;">Can  provides
            some possibilities for solving problems</span></div>
        <div><br>
        </div>
        <div>loadmodule "acc.so"</div>
        <div>/* what special events should be accounted ? */</div>
        <div>modparam("acc", "early_media", 0)</div>
        <div>modparam("acc", "report_cancels", 0)</div>
        <div>/* by default we do not adjust the direct of the sequential
          requests.</div>
        <div>   if you enable this parameter, be sure to enable
          "append_fromtag"</div>
        <div>   in "rr" module */</div>
        <div>modparam("acc", "detect_direction", 0)</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>modparam("acc", "log_level", 2)</div>
        <div>modparam("acc", "log_facility", "LOG_LOCAL1")</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>if (is_method("INVITE")) {</div>
        <div>    do_accounting("log", "cdr|missed|failed");</div>
        <div>}</div>
        <div><br>
        </div>
        <div>if (is_method("BYE")) {</div>
        <div>    do_accounting("log","failed");</div>
        <div>}</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>failure_route[missed_call] {</div>
        <div>        do_accounting("log","missed");</div>
        <div>        rtpengine_delete();</div>
        <div>        if (t_was_cancelled()) {</div>
        <div>                exit;</div>
        <div>        }</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>IN rsyslog.conf</div>
        <div><br>
        </div>
        <div>local1.*   /var/log/opensips/opensips.cdr</div>
      </div>
      <div><br>
      </div>
      <hr style="width: 210px; height: 1px;" size="1" color="#b5c4df"
        align="left">
      <div><span>
          <div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE:
            10pt">
            <div><a class="moz-txt-link-abbreviated" href="mailto:fun_yang@foxmail.com">fun_yang@foxmail.com</a></div>
          </div>
        </span></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>