[SR-Users] {param.in, name[, delimiter]} error when delimiter is comma

Henning Westerholt hw at gilawa.com
Wed Mar 23 13:49:40 CET 2022


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<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of ???
Sent: Wednesday, March 23, 2022 11:12 AM
To: sr-users <sr-users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220323/836492af/attachment.htm>


More information about the sr-users mailing list