[prev in list] [next in list] [prev in thread] [next in thread]
List: sr-users
Subject: [SR-Users] cdr_json_pre_encoded_prefix
From: Oleg Podguyko via sr-users <sr-users () lists ! kamailio ! org>
Date: 2023-09-25 5:27:10
Message-ID: DF65A6D4-E9ED-4D43-9F13-9FBE0C0C4A93 () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (unknown)]
<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: \
space; line-break: after-white-space;"><div style="caret-color: rgb(44, 45, 46); \
color: rgb(44, 45, 46); font-family: Helvetica, Arial, Tahoma, Verdana, sans-serif; \
font-size: 15px;">I try to use cdr_json_pre_encoded_prefix \
(string) parameters from acc_json module</div><div style="caret-color: rgb(44, 45, \
46); color: rgb(44, 45, 46); font-family: Helvetica, Arial, Tahoma, Verdana, \
sans-serif; font-size: 15px;"> </div><div style="caret-color: rgb(44, 45, 46); \
color: rgb(44, 45, 46); font-family: Helvetica, Arial, Tahoma, Verdana, sans-serif; \
font-size: 15px;"><p style="color: rgb(0, 0, 0); font-stretch: normal; font-size: \
13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: \
auto; font-variant-alternates: normal; font-variant-ligatures: normal; \
font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: \
normal; font-feature-settings: normal; font-optical-sizing: auto; \
font-variation-settings: normal;"><span style="font-variant-ligatures: \
no-common-ligatures;">modparam("acc_json", "cdr_extra", \
"spx_resp=$avp(spx_resp)")</span></p><p style="color: rgb(0, 0, 0); font-stretch: \
normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: \
none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: \
normal; font-variant-numeric: normal; font-variant-east-asian: normal; \
font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: \
auto; font-variation-settings: normal;"><span style="font-variant-ligatures: \
no-common-ligatures;">modparam("acc_json", "cdr_json_pre_encoded_prefix", \
"spx_resp")</span></p><div style="color: rgb(0, 0, 0); font-family: Menlo; \
font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; \
font-size-adjust: none; font-size: 13px; font-stretch: normal; \
font-variant-alternates: normal; font-variant-east-asian: normal; \
font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: \
normal; font-variation-settings: normal; line-height: normal;"> </div><div \
style="color: rgb(0, 0, 0); font-family: Menlo; font-feature-settings: normal; \
font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: \
13px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: \
normal; font-variant-ligatures: normal; font-variant-numeric: normal; \
font-variant-position: normal; font-variation-settings: normal; line-height: \
normal;"> </div><div style="color: rgb(0, 0, 0); font-family: Menlo; \
font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; \
font-size-adjust: none; font-size: 13px; font-stretch: normal; \
font-variant-alternates: normal; font-variant-east-asian: normal; \
font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: \
normal; font-variation-settings: normal; line-height: normal;">do restart and get \
next mistakes:</div><div style="color: rgb(0, 0, 0); font-family: Menlo; \
font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; \
font-size-adjust: none; font-size: 13px; font-stretch: normal; \
font-variant-alternates: normal; font-variant-east-asian: normal; \
font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: \
normal; font-variation-settings: normal; line-height: normal;"> </div><div \
style="color: rgb(0, 0, 0); font-family: Menlo; font-feature-settings: normal; \
font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: \
13px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: \
normal; font-variant-ligatures: normal; font-variant-numeric: normal; \
font-variant-position: normal; font-variation-settings: normal; line-height: \
normal;"><p style="color: rgb(180, 36, 25); font-stretch: normal; line-height: \
normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; \
font-variant-ligatures: normal; font-variant-numeric: normal; \
font-variant-east-asian: normal; font-variant-position: normal; \
font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: \
normal;"><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, \
0);">sep 22 14:17:15 vms-vms-spx-1 kamailio[581922]: </span><span \
style="font-variant-ligatures: no-common-ligatures;"><b>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></b></span></p><p style="color: rgb(180, 36, 25); font-stretch: \
normal; line-height: normal; font-size-adjust: none; font-kerning: auto; \
font-variant-alternates: normal; font-variant-ligatures: normal; \
font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: \
normal; font-feature-settings: normal; font-optical-sizing: auto; \
font-variation-settings: normal;"><span style="font-variant-ligatures: \
no-common-ligatures; color: rgb(0, 0, 0);">сен 22 14:17:15 vms-vms-spx-1 \
kamailio[581922]: </span><span style="font-variant-ligatures: \
no-common-ligatures;"><b>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</b></span></p><p style="font-stretch: normal; line-height: \
normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; \
font-variant-ligatures: normal; font-variant-numeric: normal; \
font-variant-east-asian: normal; font-variant-position: normal; \
font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: \
normal;"><span style="font-variant-ligatures: no-common-ligatures;">sep 22 14:17:15 \
vms-vms-spx-1 kamailio[581922]: ERROR: bad config file (1 errors) (parsing code: \
0)</span></p><p style="font-stretch: normal; line-height: normal; font-size-adjust: \
none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: \
normal; font-variant-numeric: normal; font-variant-east-asian: normal; \
font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: \
auto; font-variation-settings: normal;"><span style="font-variant-ligatures: \
no-common-ligatures;">sep 22 14:17:15 vms-vms-spx-1 \
systemd[1]: <b>kamailio_vmsspx.service: Control process exited, code=exited \
status=255</b></span></p><p style="font-stretch: normal; line-height: normal; \
font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; \
font-variant-ligatures: normal; font-variant-numeric: normal; \
font-variant-east-asian: normal; font-variant-position: normal; \
font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: \
normal;"><span style="font-variant-ligatures: no-common-ligatures;">sep 22 14:17:15 \
vms-vms-spx-1 systemd[1]: <b>kamailio_vmsspx.service: Failed with result \
'exit-code'.</b></span></p></div></div><div style="caret-color: rgb(44, 45, 46); \
color: rgb(44, 45, 46); font-family: Helvetica, Arial, Tahoma, Verdana, sans-serif; \
font-size: 15px;"> </div><div style="caret-color: rgb(44, 45, 46); color: \
rgb(44, 45, 46); font-family: Helvetica, Arial, Tahoma, Verdana, sans-serif; \
font-size: 15px;">What's wrong? </div><div style="caret-color: rgb(44, 45, 46); \
color: rgb(44, 45, 46); font-family: Helvetica, Arial, Tahoma, Verdana, sans-serif; \
font-size: 15px;">I used:</div><div style="caret-color: rgb(44, 45, 46); color: \
rgb(44, 45, 46); font-family: Helvetica, Arial, Tahoma, Verdana, sans-serif; \
font-size: 15px;"><p style="color: rgb(0, 0, 0); font-stretch: normal; font-size: \
13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: \
auto; font-variant-alternates: normal; font-variant-ligatures: normal; \
font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: \
normal; font-feature-settings: normal; font-optical-sizing: auto; \
font-variation-settings: normal;"><span style="font-variant-ligatures: \
no-common-ligatures;">[opodguyko@vms-vms-spx-1 ~]$ kamailio -version</span></p><p \
style="color: rgb(0, 0, 0); font-stretch: normal; font-size: 13px; line-height: \
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; \
font-variant-alternates: normal; font-variant-ligatures: normal; \
font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: \
normal; font-feature-settings: normal; font-optical-sizing: auto; \
font-variation-settings: normal;"><span style="font-variant-ligatures: \
no-common-ligatures;">version: kamailio 5.5.3 (x86_64/linux) \
b02728-dirty</span></p><p style="color: rgb(0, 0, 0); font-stretch: normal; \
font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: none; \
font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; \
font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: \
normal; font-feature-settings: normal; font-optical-sizing: auto; \
font-variation-settings: normal;"><span style="font-variant-ligatures: \
no-common-ligatures;">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</span></p><p style="color: rgb(0, 0, 0); font-stretch: \
normal; font-size: 13px; line-height: normal; font-family: Menlo; font-size-adjust: \
none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: \
normal; font-variant-numeric: normal; font-variant-east-asian: normal; \
font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: \
auto; font-variation-settings: normal;"><span style="font-variant-ligatures: \
no-common-ligatures;">ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, \
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB</span></p><p style="color: \
rgb(0, 0, 0); font-stretch: normal; font-size: 13px; line-height: normal; \
font-family: Menlo; font-size-adjust: none; font-kerning: auto; \
font-variant-alternates: normal; font-variant-ligatures: normal; \
font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: \
normal; font-feature-settings: normal; font-optical-sizing: auto; \
font-variation-settings: normal;"><span style="font-variant-ligatures: \
no-common-ligatures;">poll method support: poll, epoll_lt, epoll_et, sigio_rt, \
select.</span></p><p style="color: rgb(0, 0, 0); font-stretch: normal; font-size: \
13px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: \
auto; font-variant-alternates: normal; font-variant-ligatures: normal; \
font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: \
normal; font-feature-settings: normal; font-optical-sizing: auto; \
font-variation-settings: normal;"><span style="font-variant-ligatures: \
no-common-ligatures;">id: b02728 -dirty</span></p><p style="color: rgb(0, 0, 0); \
font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; \
font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; \
font-variant-ligatures: normal; font-variant-numeric: normal; \
font-variant-east-asian: normal; font-variant-position: normal; \
font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: \
normal;"><span style="font-variant-ligatures: no-common-ligatures;">compiled on \
15:35:46 Dec 15 2021 with gcc 8.3.1</span></p><p style="color: rgb(0, 0, 0); \
font-stretch: normal; font-size: 13px; line-height: normal; font-family: Menlo; \
font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; \
font-variant-ligatures: normal; font-variant-numeric: normal; \
font-variant-east-asian: normal; font-variant-position: normal; \
font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: \
normal;"><span style="font-variant-ligatures: \
no-common-ligatures;">[opodguyko@vms-vms-spx-1 ~]$ </span></p></div><div \
style="caret-color: rgb(44, 45, 46); color: rgb(44, 45, 46); font-family: Helvetica, \
Arial, Tahoma, Verdana, sans-serif; font-size: 15px;"> </div><div \
style="caret-color: rgb(44, 45, 46); color: rgb(44, 45, 46); font-family: Helvetica, \
Arial, Tahoma, Verdana, sans-serif; font-size: 15px;">This parameter was added at \
release 5.5.0</div><div style="caret-color: rgb(44, 45, 46); color: rgb(44, 45, 46); \
font-family: Helvetica, Arial, Tahoma, Verdana, sans-serif; font-size: \
15px;"><br></div><div style="caret-color: rgb(44, 45, 46); color: rgb(44, 45, 46); \
font-family: Helvetica, Arial, Tahoma, Verdana, sans-serif; font-size: 15px;">Oleg \
Podguyko</div></body></html>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic