Likely I broke it in the morning -- I will look at it.
Cheers,
Daniel
On 01.06.21 15:06, Juha Heinanen wrote:
This used to work:
$var(count) = $(var(servers){param.count,%});
but latest master gives:
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) INFO: pv [pv_shv.c:60]:
shvar_init_locks(): locks array size 16
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: pv [pv_trans.c:3254]:
tr_parse_paramlist(): invalid count transformation: count,%}!
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1799]:
tr_lookup(): error parsing [{param.count,%}]
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1106]:
pv_parse_spec2(): bad tr in pvar name "var"
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1131]:
pv_parse_spec2(): invalid parsing in [$(var(servers){param.count,%})] at (4)
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) CRITICAL: <core> [core/cfg.y:3683]:
yyerror_at(): parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 7591, column
19-48: Can't get from cache: $(var(servers){param.count,%})
-- Juha
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
--
Daniel-Constantin Mierla --
www.asipto.com
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training - Online - June 7-10, 2021 (America Timezone)
*
https://www.asipto.com/sw/kamailio-advanced-training-online/