[SR-Users] Re: cdr_json_pre_encoded_prefix

2023-09-26 Thread Oleg Podguyko via sr-users
Hello,
Yes in this case it works, thank you

> 25 сент. 2023 г., в 09:39, Henning Westerholt via sr-users 
>  написал(а):
> 
> 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 
>  
> From: Oleg Podguyko via sr-users  
> Sent: Montag, 25. September 2023 07:27
> To: sr-users@lists.kamailio.org
> Cc: Oleg Podguyko 
> Subject: [SR-Users] cdr_json_pre_encoded_prefix
>  
> I try to usecdr_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/modparam.c:169]: set_mod_param_regex(): parameter 
>  of type <1:string> not found in module 
> 
> 
> сен 22 14:17:15 vms-vms-spx-1 kamailio[581922]: CRITICAL:  
> [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-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: cdr_json_pre_encoded_prefix

2023-09-24 Thread Henning Westerholt via sr-users
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

From: Oleg Podguyko via sr-users 
Sent: Montag, 25. September 2023 07:27
To: sr-users@lists.kamailio.org
Cc: Oleg Podguyko 
Subject: [SR-Users] cdr_json_pre_encoded_prefix

I try to usecdr_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/modparam.c:169]: set_mod_param_regex(): parameter 
 of type <1:string> not found in module 

сен 22 14:17:15 vms-vms-spx-1 kamailio[581922]: CRITICAL:  
[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-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: cdr_json_pre_encoded_prefix

2023-09-24 Thread Bastian Triller via sr-users
Documentation is wrong. Parameter is actually cdr_pre_encoded_prefix.

Regards,
Bastian

On Mon, Sep 25, 2023 at 8:17 AM Oleg Podguyko via sr-users <
sr-users@lists.kamailio.org> wrote:

> I try to usecdr_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/modparam.c:169]: set_mod_param_regex(): parameter
>  of type <1:string> not found in module
> *
>
> сен 22 14:17:15 vms-vms-spx-1 kamailio[581922]: *CRITICAL: 
> [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-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe: