Hello,
can you try please with: "cdr_pre_encoded_prefix" as parameter name?
It looks that there is an error in the documentation. If you confirm it works, I can fix
the docs.
Cheers,
Henning
--
Henning Westerholt –
https://skalatan.de/blog/
Kamailio services –
https://gilawa.com<https://gilawa.com/>
From: Oleg Podguyko via sr-users <sr-users(a)lists.kamailio.org>
Sent: Montag, 25. September 2023 07:27
To: sr-users(a)lists.kamailio.org
Cc: Oleg Podguyko <podguyko(a)gmail.com>
Subject: [SR-Users] cdr_json_pre_encoded_prefix
I try to use cdr_json_pre_encoded_prefix (string) parameters from acc_json module
modparam("acc_json", "cdr_extra",
"spx_resp=$avp(spx_resp)")
modparam("acc_json", "cdr_json_pre_encoded_prefix",
"spx_resp")
do restart and get next mistakes:
sep 22 14:17:15 vms-vms-spx-1 kamailio[581922]: ERROR: <core> [core/modparam.c:169]:
set_mod_param_regex(): parameter <cdr_json_pre_encoded_prefix> of type
<1:string> not found in module <acc_json>
сен 22 14:17:15 vms-vms-spx-1 kamailio[581922]: CRITICAL: <core> [core/cfg.y:3686]:
yyerror_at(): parse error in config file /etc/kamailio_vmsspx/modules.cfg, line 125,
column 63: Can't set module parameter
sep 22 14:17:15 vms-vms-spx-1 kamailio[581922]: ERROR: bad config file (1 errors) (parsing
code: 0)
sep 22 14:17:15 vms-vms-spx-1 systemd[1]: kamailio_vmsspx.service: Control process exited,
code=exited status=255
sep 22 14:17:15 vms-vms-spx-1 systemd[1]: kamailio_vmsspx.service: Failed with result
'exit-code'.
What’s wrong?
I used:
[opodguyko@vms-vms-spx-1 ~]$ kamailio -version
version: kamailio 5.5.3 (x86_64/linux) b02728-dirty
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, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535,
DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: b02728 -dirty
compiled on 15:35:46 Dec 15 2021 with gcc 8.3.1
[opodguyko@vms-vms-spx-1 ~]$
This parameter was added at release 5.5.0
Oleg Podguyko