Hello,

 

Please have a look to the documentation, the issue is described there, and a workaround also suggested.

 

http://www.kamailio.org/wiki/cookbooks/devel/transformations#parameters_list_transformations

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of ???
Sent: Wednesday, March 23, 2022 11:12 AM
To: sr-users <sr-users@lists.kamailio.org>
Subject: [SR-Users] {param.in, name[, delimiter]} error when delimiter is comma

 

Hi, all

 

Kamailio5.5.4

 

$var(s) = "a=1;b=2;c=3";

$var(s1) = $(var(s){param.value,b}); // work well

 

$var(s) = "a=1|b=2|c=3";

$var(s1) = $(var(s){param.value,b,|}); // work well

 

// but

$var(s) = "a=1,b=2,c=3";

$var(s1) = $(var(s){param.value,b,,});

ERROR: <core> [core/pvapi.c:1131]: pv_parse_spec2(): invalid parsing in [$(var(s){param.value,b,,})] at (4)

CRITICAL: <core> [core/cfg.y:3683]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 366, column 13-38: Can't get from cache: $(var(s){param.value,b,,})

 

how to fix this?

Thanks!


hanxiaofang