Hello,

try to enclose the last parameter between double quotes as well. Not all
functions support to get parameters as pure variables, but they expect to
have the parameter in double quotes, even if it is just a variable name.

Cheers,
Daniel

On Wed, Jul 3, 2019 at 2:04 PM Igor Olhovskiy <[email protected]>
wrote:

> Hi!
>
> I'm trying to get jannson_get working, but seems missing something.
> Example is quite simple, actually taken from wiki
>
> $var(result) = $null;
> jansson_get("pi", '{"mystr":"my input string", "count":9000,
> "mybool":true, "pi":3.14159}', $var(result));
>
> When running this part of code getting
>
> ERROR: <core> [core/action.c:1139]: do_action(): runtime fixup failed for
> jansson_get param 3
> ERROR: <core> [core/action.c:1518]: do_action(): run action error at:
> /etc/kamailio/kamailio.cfg:1030
>
> Also tried with
> jannson_get(".pi", ...);
> jannson_get('/"pi"', ...);
> and a bit others.
>
> What am I missing?
>
>
> kamailio 5.2.3
>
> Thanks!
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [email protected]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>


-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to