[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-users
Subject:    [SR-Users] Re: cdr_json_pre_encoded_prefix
From:       Oleg Podguyko via sr-users <sr-users () lists ! kamailio ! org>
Date:       2023-09-26 13:55:19
Message-ID: F8A8F7CF-C330-44D6-9C16-F79596ABE527 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,
Yes in this case it works, thank you

> 25 сент. 2023 г., в 09:39, Henning Westerholt via sr-users \
> <sr-users@lists.kamailio.org> написал(а): 
> 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@lists.kamailio.org> 
> Sent: Montag, 25. September 2023 07:27
> To: sr-users@lists.kamailio.org
> Cc: Oleg Podguyko <podguyko@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
> __________________________________________________________
> 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:


[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>Hello,</div>Yes&nbsp;in this case it \
works, thank you<div><br><blockquote type="cite"><div>25 сент. 2023 г., в \
09:39, Henning Westerholt via sr-users &lt;sr-users@lists.kamailio.org&gt; \
написал(а):</div><br class="Apple-interchange-newline"><div><meta \
charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: \
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; \
font-size: 11pt; font-family: Calibri, \
sans-serif;"><span>Hello,<o:p></o:p></span></div><div style="margin: 0cm; font-size: \
11pt; font-family: Calibri, sans-serif;"><span><o:p>&nbsp;</o:p></span></div><div \
style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><span \
lang="EN-GB">can you try please with: "cdr_pre_encoded_prefix" as parameter \
name?<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: \
Calibri, sans-serif;"><span lang="EN-GB"><o:p>&nbsp;</o:p></span></div><div \
style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><span \
lang="EN-GB">It looks that there is an error in the documentation. If you confirm it \
works, I can fix the docs.<o:p></o:p></span></div><div style="margin: 0cm; font-size: \
11pt; font-family: Calibri, sans-serif;"><span \
lang="EN-GB"><o:p>&nbsp;</o:p></span></div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span \
lang="EN-GB">Cheers,<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span \
lang="EN-GB"><o:p>&nbsp;</o:p></span></div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span \
lang="EN-GB">Henning<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span \
lang="EN-GB"><o:p>&nbsp;</o:p></span></div><div><div style="margin: 0cm; font-size: \
11pt; font-family: Calibri, sans-serif;"><span lang="EN-GB">--<span \
class="Apple-converted-space">&nbsp;</span><o:p></o:p></span></div><div \
style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><span \
lang="EN-GB">Henning Westerholt –<span \
class="Apple-converted-space">&nbsp;</span></span><span><a \
href="https://skalatan.de/blog/"><span lang="EN-GB" style="color: rgb(5, 99, \
193);">https://skalatan.de/blog/</span></a></span><span \
lang="EN-GB"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span lang="EN-GB">Kamailio services –<span \
class="Apple-converted-space">&nbsp;</span></span><span><a \
href="https://gilawa.com/"><span lang="EN-GB" style="color: rgb(5, 99, \
193);">https://gilawa.com</span></a></span><span \
lang="EN-GB"><o:p></o:p></span></div></div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span \
lang="EN-GB"><o:p>&nbsp;</o:p></span></div><div style="border-width: medium medium \
medium 1.5pt; border-style: none none none solid; border-color: currentcolor \
currentcolor currentcolor blue; border-image: none; padding: 0cm 0cm 0cm \
4pt;"><div><div style="border-width: 1pt medium medium; border-style: solid none \
none; border-color: rgb(225, 225, 225) currentcolor currentcolor; border-image: none; \
padding: 3pt 0cm 0cm;"><div style="margin: 0cm; font-size: 11pt; font-family: \
Calibri, sans-serif;"><b><span lang="EN-GB">From:</span></b><span lang="EN-GB"><span \
class="Apple-converted-space">&nbsp;</span>Oleg Podguyko via sr-users \
&lt;sr-users@lists.kamailio.org&gt;<span \
class="Apple-converted-space">&nbsp;</span><br><b>Sent:</b><span \
class="Apple-converted-space">&nbsp;</span>Montag, 25. September 2023 \
07:27<br><b>To:</b><span \
class="Apple-converted-space">&nbsp;</span>sr-users@lists.kamailio.org<br><b>Cc:</b><span \
class="Apple-converted-space">&nbsp;</span>Oleg Podguyko \
&lt;podguyko@gmail.com&gt;<br><b>Subject:</b><span \
class="Apple-converted-space">&nbsp;</span>[SR-Users] \
cdr_json_pre_encoded_prefix<o:p></o:p></span></div></div></div><div style="margin: \
0cm; font-size: 11pt; font-family: Calibri, \
sans-serif;"><o:p>&nbsp;</o:p></div><div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span style="font-size: 11.5pt; font-family: \
Helvetica, sans-serif; color: rgb(44, 45, 46);">I try to use &nbsp; &nbsp; &nbsp; \
&nbsp;cdr_json_pre_encoded_prefix (string) parameters from acc_json \
module<o:p></o:p></span></div></div><div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span style="font-size: 11.5pt; font-family: \
Helvetica, sans-serif; color: rgb(44, 45, \
46);">&nbsp;<o:p></o:p></span></div></div><div><p><span style="font-size: 10pt; \
font-family: Menlo, serif;">modparam("acc_json", "cdr_extra", \
"spx_resp=$avp(spx_resp)")<o:p></o:p></span></p><p style="font-stretch: 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-size: 10pt; font-family: Menlo, \
serif;">modparam("acc_json", "cdr_json_pre_encoded_prefix", \
"spx_resp")<o:p></o:p></span></p><div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Menlo, \
serif;">&nbsp;<o:p></o:p></span></div></div><div><div style="margin: 0cm; font-size: \
11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: \
Menlo, serif;">&nbsp;<o:p></o:p></span></div></div><div><div style="margin: 0cm; \
font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; \
font-family: Menlo, serif;">do restart and get next \
mistakes:<o:p></o:p></span></div></div><div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Menlo, \
serif;">&nbsp;<o:p></o:p></span></div></div><div><p><span style="font-size: 10pt; \
font-family: Menlo, serif;">sep 22 14:17:15 vms-vms-spx-1 \
kamailio[581922]:&nbsp;</span><b><span style="font-size: 10pt; font-family: Menlo, \
serif; color: rgb(180, 36, 25);">ERROR: &lt;core&gt; [core/modparam.c:169]: \
set_mod_param_regex(): parameter &lt;cdr_json_pre_encoded_prefix&gt; of type \
&lt;1:string&gt; not found in module &lt;acc_json&gt;</span></b><span \
style="font-size: 10pt; font-family: Menlo, serif; color: rgb(180, 36, \
25);"><o:p></o:p></span></p><p style="font-stretch: 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-size: 10pt; font-family: Menlo, \
serif;">сен 22 14:17:15 vms-vms-spx-1 kamailio[581922]:&nbsp;</span><b><span \
style="font-size: 10pt; font-family: Menlo, serif; color: rgb(180, 36, \
25);">CRITICAL: &lt;core&gt; [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</span></b><span style="font-size: 10pt; font-family: Menlo, serif; color: \
rgb(180, 36, 25);"><o:p></o:p></span></p><p style="font-stretch: 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-size: 10pt; font-family: Menlo, serif;">sep 22 14:17:15 \
vms-vms-spx-1 kamailio[581922]: ERROR: bad config file (1 errors) (parsing code: \
0)<o:p></o:p></span></p><p style="font-stretch: 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-size: 10pt; font-family: Menlo, \
serif;">sep 22 14:17:15 vms-vms-spx-1 systemd[1]:&nbsp;<b>kamailio_vmsspx.service: \
Control process exited, code=exited status=255</b><o:p></o:p></span></p><p \
style="font-stretch: 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-size: 10pt; font-family: Menlo, \
serif;">sep 22 14:17:15 vms-vms-spx-1 systemd[1]:&nbsp;<b>kamailio_vmsspx.service: \
Failed with result 'exit-code'.</b><o:p></o:p></span></p></div></div><div><div \
style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><span \
style="font-size: 11.5pt; font-family: Helvetica, sans-serif; color: rgb(44, 45, \
46);">&nbsp;<o:p></o:p></span></div></div><div><div style="margin: 0cm; font-size: \
11pt; font-family: Calibri, sans-serif;"><span style="font-size: 11.5pt; font-family: \
Helvetica, sans-serif; color: rgb(44, 45, 46);">What's \
wrong?&nbsp;<o:p></o:p></span></div></div><div><div style="margin: 0cm; font-size: \
11pt; font-family: Calibri, sans-serif;"><span style="font-size: 11.5pt; font-family: \
Helvetica, sans-serif; color: rgb(44, 45, 46);">I \
used:<o:p></o:p></span></div></div><div><p><span style="font-size: 10pt; font-family: \
Menlo, serif;">[opodguyko@vms-vms-spx-1 ~]$ kamailio -version<o:p></o:p></span></p><p \
style="font-stretch: 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-size: 10pt; font-family: Menlo, \
serif;">version: kamailio 5.5.3 (x86_64/linux) b02728-dirty<o:p></o:p></span></p><p \
style="font-stretch: 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-size: 10pt; font-family: Menlo, \
serif;">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<o:p></o:p></span></p><p style="font-stretch: 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-size: 10pt; font-family: Menlo, \
serif;">ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, \
BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<o:p></o:p></span></p><p style="font-stretch: \
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-size: 10pt; font-family: Menlo, serif;">poll method \
support: poll, epoll_lt, epoll_et, sigio_rt, select.<o:p></o:p></span></p><p \
style="font-stretch: 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-size: 10pt; font-family: Menlo, \
serif;">id: b02728 -dirty<o:p></o:p></span></p><p style="font-stretch: 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-size: 10pt; font-family: Menlo, serif;">compiled on \
15:35:46 Dec 15 2021 with gcc 8.3.1<o:p></o:p></span></p><p style="font-stretch: \
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-size: 10pt; font-family: Menlo, \
serif;">[opodguyko@vms-vms-spx-1 ~]$&nbsp;<o:p></o:p></span></p></div><div><div \
style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;"><span \
style="font-size: 11.5pt; font-family: Helvetica, sans-serif; color: rgb(44, 45, \
46);">&nbsp;<o:p></o:p></span></div></div><div><div style="margin: 0cm; font-size: \
11pt; font-family: Calibri, sans-serif;"><span style="font-size: 11.5pt; font-family: \
Helvetica, sans-serif; color: rgb(44, 45, 46);">This parameter was added at release \
5.5.0<o:p></o:p></span></div></div><div><div style="margin: 0cm; font-size: 11pt; \
font-family: Calibri, sans-serif;"><span style="font-size: 11.5pt; font-family: \
Helvetica, sans-serif; color: rgb(44, 45, \
46);"><o:p>&nbsp;</o:p></span></div></div><div><div style="margin: 0cm; font-size: \
11pt; font-family: Calibri, sans-serif;"><span style="font-size: 11.5pt; font-family: \
Helvetica, sans-serif; color: rgb(44, 45, 46);">Oleg \
Podguyko<o:p></o:p></span></div></div></div></div><span style="caret-color: rgb(0, 0, \
0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: \
normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: \
0px; text-transform: none; white-space: normal; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline \
!important;">__________________________________________________________</span><br \
style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: \



__________________________________________________________
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