<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>I updated a bit the text in the section, but feel free to make a
      pull request to clarify further.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 01.11.21 13:43, Karsten Horsmann
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFArqsYdrQOuc-xF_FCNgRb-Jsx8OJ9UpBFD_BkdsM=_mMgv0g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi List,
        <div><br>
        </div>
        <div>okay - i found it myself after reading the code a bit.
          cdr_enable must be 0 if i didnt want to use dialog.so.</div>
        <div>A bit confusing what that parameter described in the
          documentation.</div>
        <div><br>
        </div>
        <div>
          <div class="gmail-titlepage"
style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:15px">
            <div>
              <div>
                <h3 class="gmail-title" style="margin:1em 0px
                  0.75em;padding:0px 0px 5px
5px;color:rgb(107,83,68);font-family:Scada,Helvetica,sans-serif;font-size:20px;line-height:28px;font-style:italic">3.11. <code
                    class="gmail-varname">cdr_enable</code> (str)</h3>
              </div>
            </div>
          </div>
          <p
style="font-family:Helvetica,Arial,sans-serif;text-align:justify;color:rgb(0,0,0);font-size:15px">Enable
            Call Data Record generation.</p>
          <p
style="font-family:Helvetica,Arial,sans-serif;text-align:justify;color:rgb(0,0,0);font-size:15px">Default
            value is 0 (disabled).</p>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Am Mo., 1. Nov. 2021 um
          13:22 Uhr schrieb Karsten Horsmann <<a
            href="mailto:khorsmann@gmail.com" moz-do-not-send="true"
            class="moz-txt-link-freetext">khorsmann@gmail.com</a>>:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Hi List,
            <div><br>
            </div>
            <div>i want to try out acc_json (to syslog). But if i set
              up  "cdr_enable", 1 - it breaks the startup of kamailio
              with that error (dialog module is not listed as
              dependency).</div>
            <div><br>
            </div>
            <div>Any hints?</div>
            <div><br>
            </div>
            <div>Nov 01 13:13:59 siprouter2 kamailio[22397]: INFO:
              acc_json [acc_json_mod.c:135]: mod_init(): janson version
              : 2.10<br>
              Nov 01 13:13:59 siprouter2 kamailio[22397]: ERROR:
              acc_json [acc_json_mod.c:204]: mod_init(): can't load
              dialog API<br>
              Nov 01 13:13:59 siprouter2 kamailio[22397]: ERROR:
              <core> [core/sr_module.c:943]: init_mod(): Error
              while initializing module acc_json
              (/usr/lib64/kamailio/modules/acc_json.so)<br>
              <br>
              <br>
              #!ifdef WITH_DBTEXT<br>
              loadmodule "db_text.so"<br>
              #!endif<br>
              #!ifndef WITH_DBTEXT<br>
              loadmodule "db_mysql.so"<br>
              #!endif<br>
              <br>
              loadmodule "jsonrpcs.so"<br>
              loadmodule "kex.so"<br>
              loadmodule "corex.so"<br>
              loadmodule "tm.so"<br>
              loadmodule "tmx.so"<br>
              loadmodule "sl.so"<br>
              loadmodule "rr.so"<br>
              loadmodule "pv.so"<br>
              loadmodule "maxfwd.so"<br>
              loadmodule "textops.so"<br>
              loadmodule "siputils.so"<br>
              loadmodule "xlog.so"<br>
              loadmodule "sanity.so"<br>
              loadmodule "ctl.so"<br>
              loadmodule "cfg_rpc.so"<br>
              loadmodule "acc.so"<br>
              loadmodule "dispatcher.so"<br>
              loadmodule "permissions.so"<br>
              loadmodule "avpops.so"<br>
              #!ifdef WITH_ACCJSON<br>
              loadmodule "acc_json.so"<br>
              #!endif<br>
              #!ifdef WITH_DIALPLAN<br>
              loadmodule "dialplan.so"<br>
              modparam("dialplan", "db_url", DBURL)<br>
              modparam("dialplan", "fetch_rows", 1000)<br>
              modparam("dialplan", "attrs_pvar", "$avp(s:dest)")<br>
              #!endif<br>
              <br>
              #!ifdef WITH_JSONSTATS<br>
              loadmodule "xhttp.so"<br>
              loadmodule "jansson.so"<br>
              loadmodule "janssonrpcc.so"<br>
              #!endif<br>
              <br>
              #!ifdef WITH_HOMER<br>
              loadmodule "siptrace.so"<br>
              #!endif<br>
              <br>
              loadmodule "pipelimit.so"<br>
              loadmodule "htable.so"<br>
              <br>
              ....<br>
              <br>
              # ----- acc params -----<br>
              modparam("acc", "log_flag", FLT_ACC)<br>
              modparam("acc", "failed_transaction_flag", FLT_ACCFAILED)<br>
              # ----- acc params -----<br>
              #!ifdef WITH_ACCSYSLOG<br>
              modparam("acc", "log_facility", "LOG_LOCAL2")<br>
              modparam("acc", "log_level", 2)<br>
              #!endif<br>
              /* what special events should be accounted ? */<br>
              modparam("acc", "time_mode", 4)<br>
              modparam("acc", "time_attr", "utctime")<br>
              modparam("acc", "time_format", "%Y-%m-%d %H:%M:%S")<br>
              modparam("acc", "acc_time_column", "localtime")<br>
              ## --- to syslog<br>
              modparam("acc", "early_media", 1)<br>
              modparam("acc", "report_ack", 1)<br>
              modparam("acc", "report_cancels", 1)<br>
              /* by default ww do not adjust the direct of the
              sequential requests.<br>
               * if you enable this parameter, be sure the enable
              "append_fromtag"<br>
               * in "rr" module */<br>
              modparam("acc", "detect_direction", 0)<br>
              /* account triggers (flags) */<br>
              modparam("acc", "log_flag", FLT_ACC)<br>
              modparam("acc", "log_missed_flag", FLT_ACCMISSED)<br>
              modparam("acc", "log_extra",<br>
                      "src_user=$fU;src_domain=$fd;src_ip=$si;"<br>
                     
"dst_ouser=$tU;dst_user=$rU;dst_domain=$rd;user_agent=$ua;x_t_call_id=$avp(x-t-call-id);x_routing=$avp(x_routing);x_billing=$avp(x_billing)")<br>
              modparam("acc", "failed_transaction_flag", FLT_ACCFAILED)<br>
              /* enhanced DB accounting */<br>
              #!ifdef WITH_ACCDB<br>
              modparam("acc", "db_flag", FLT_ACC)<br>
              modparam("acc", "db_missed_flag", FLT_ACCMISSED)<br>
              modparam("acc", "db_url", DBURL)<br>
              modparam("acc", "db_extra",<br>
                      "src_user=$fU;src_domain=$fd;src_ip=$si;"<br>
                      "dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")<br>
              #!endif<br>
              <br>
              #!ifdef WITH_ACCJSON<br>
              modparam("acc_json", "acc_missed_flag", 3)<br>
              modparam("acc_json", "acc_time_mode", 1)<br>
              modparam("acc_json", "cdr_output_syslog", 1)<br>
              modparam("acc_json", "acc_time_format", "%Y/%m/%d
              %H:%M:%S")<br>
              modparam("acc_json", "acc_log_facility", "LOG_LOCAL1")<br>
              modparam("acc_json", "acc_log_level", 2) # Set
              acc_log_level to 2 (L_INFO)<br>
              modparam("acc_json", "cdr_enable", 1)<br>
              #!endif<br>
              ....<br>
              <br>
              version: kamailio 5.5.2 (x86_64/linux) 55e232<br>
              flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
              USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK,
              SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC,
              DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
              USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
              USE_DST_BLOCKLIST, HAVE_RESOLV_RES<br>
              ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144,
              MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
              poll method support: poll, epoll_lt, epoll_et, sigio_rt,
              select.<br>
              id: 55e232<br>
              compiled on 14:20:31 Aug 25 2021 with gcc 4.8.5<br>
              <div><br>
              </div>
              -- <br>
              <div dir="ltr">Mit freundlichen Grüßen<br>
                *Karsten Horsmann*<br>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature">Mit freundlichen Grüßen<br>
        *Karsten Horsmann*<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">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">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
Nov 08-11, 2021 (Europe Timezone) - Nov 22-25, 2021 (America Timezone)
  * <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </body>
</html>