Do you have jsonrpcs module loaded?

Are you running jsonrcp_exec() before trying to access $jsonrpl(key) ?

...This variable gives access to JSONRPC reply after executing jsonrpc_exec(…) in kamailio.cfg....



On Thu, Mar 29, 2018 at 3:56 AM, Dmitry <mbike2000ru@yahoo.com> wrote:
Kamailio fails to start and I see the following errors:

kamailio[2115]: ERROR: <core> [core/pvapi.c:1085]: pv_parse_spec2(): bad tr in pvar name "jsonrpl"
kamailio[2115]: ERROR: <core> [core/pvapi.c:1111]: pv_parse_spec2(): invalid parsing in [$(jsonrpl(body){kz.json, result.NRSETS})] at (4)
kamailio[2115]: CRITICAL: <core> [core/cfg.y:3447]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/dispatcher-role.cfg, line 243, colu...ult.NRSETS})

I installed kamailio-json-modules,

Kamailio v5.1.2 installed from DEB packets from deb.kamailio.org

What is the cause of the error?

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users