[sr-dev] param.count broken in latest master?

Juha Heinanen jh at tutpro.com
Tue Jun 1 15:06:47 CEST 2021


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



More information about the sr-dev mailing list