<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" class="gmail_signature" data-smartmail="gmail_signature">Mit freundlichen Grüßen<br>*Karsten Horsmann*<br></div></div></div>