[SR-Users] cannot register ACC CDR JSON engine when using acc_json module

Pyry Aaltonen pyry.aaltonen at cuuma.com
Fri Oct 7 12:54:13 CEST 2022


Hi,

Im not sure if this helps you with that problem but I noticed that when I use acc_json, I needed to enable cdr also in the acc—module.

So try to add modparam("acc", "cdr_enable", 1) and see if it helps.


-Pyry

From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Alexis Prodhomme <alexis.prodhomme at sewan.fr>
Date: Friday, 7. October 2022 at 12.53
To: sr-users at lists.kamailio.org <sr-users at lists.kamailio.org>
Subject: [SR-Users] cannot register ACC CDR JSON engine when using acc_json module

Hi everyone,

I have some troubles using acc_json module. I can't load it and I don't understand why it fails.
The configuration is quite basic: Debian 10 and Kamailio (fails in 5.5 and 5.6) installed using APT repository.

Here is parts of my config:

loadmodule "kex.so"

loadmodule "corex.so"

loadmodule "tm.so"

loadmodule "tmx.so"

loadmodule "rr.so"

loadmodule "pv.so"

loadmodule "dialog.so"

loadmodule "acc.so"

loadmodule "acc_json.so"

modparam("acc_json", "cdr_enable", 1)

I also tried with those 4 additionnal settings with no success:

modparam("acc_json", "cdr_output_syslog", 1)

modparam("acc_json", "cdr_log_facility", "LOG_LOCAL3")

modparam("acc_json", "cdr_enable", 1)

modparam("acc_json", "cdr_expired_dlg_enable", 1)

As soon as I set cdr_enable to 1, it displays the "cannot register ACC CDR JSON engine".

Here is logs:

 0(2488) DEBUG: <core> [core/sr_module.c:969]: init_mod(): acc_json

 0(2488) DEBUG: <core> [core/sr_module.c:722]: find_mod_export_record(): found export of <bind_acc> in module acc [/usr/lib/x86_64-linux-gnu/kamailio/modules/acc.so]

 0(2488) INFO: acc_json [acc_json_mod.c:159]: mod_init(): janson version : 2.12

 0(2488) DEBUG: <core> [core/mem/q_malloc.c:374]: qm_malloc(): qm_malloc(0x7f0a6b154010, 56) called from acc: acc_mod.c: acc_register_engine(725)

 0(2488) DEBUG: <core> [core/mem/q_malloc.c:419]: qm_malloc(): qm_malloc(0x7f0a6b154010, 56) returns address 0x7f0a6b220b40 frag. 0x7f0a6b220b08 (size=56) on 1 -th hit

 0(2488) DEBUG: acc_json [acc_json_mod.c:269]: acc_json_init():  init ...

 0(2488) DEBUG: acc [acc_mod.c:741]: acc_register_engine(): new acc engine registered: json

 0(2488) DEBUG: <core> [core/sr_module.c:722]: find_mod_export_record(): found export of <load_dlg> in module dialog [/usr/lib/x86_64-linux-gnu/kamailio/modules/dialog.so]

 0(2488) ERROR: acc_json [acc_json_mod.c:245]: mod_init(): cannot register ACC CDR JSON engine

 0(2488) ERROR: <core> [core/sr_module.c:974]: init_mod(): Error while initializing module acc_json (/usr/lib/x86_64-linux-gnu/kamailio/modules/acc_json.so)

ERROR: error while initializing modules



May it be related to the Jansson version ? I use the native one from Debian 10, v2.12.
Do you have any advice, or some tips to debug my issue ?

I don't really want to use acc module and parse CDRs manually from syslog, json is far easiest for this job.

Thank you

--

Alexis

R&D

Sewan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20221007/0aaec47d/attachment.htm>


More information about the sr-users mailing list