<div dir="ltr"><div>Hello,</div><div><br></div><div>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.</div><div><br></div><div>Cheers,</div><div>Daniel<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 3, 2019 at 2:04 PM Igor Olhovskiy <<a href="mailto:igorolhovskiy@gmail.com">igorolhovskiy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi!</div><br><div>I'm trying to get jannson_get working, but seems missing something.</div><div>Example is quite simple, actually taken from wiki</div><br><div><font style="font-family:monospace">$var(result) = $null;</font></div><div><font style="font-family:monospace">jansson_get("pi", '{"mystr":"my input string", "count":9000, "mybool":true, "pi":3.14159}', $var(result));</font></div><br><div>When running this part of code getting </div><br><div><font style="font-family:monospace">ERROR: <core> [core/action.c:1139]: do_action(): runtime fixup failed for jansson_get param 3</font></div><div><font style="font-family:monospace">ERROR: <core> [core/action.c:1518]: do_action(): run action error at: /etc/kamailio/kamailio.cfg:1030</font></div><br><div>Also tried with </div><div><font style="font-family:monospace">jannson_get(".pi", ...);</font></div><div><font style="font-family:monospace">jannson_get('/"pi"', ...);</font></div><div>and a bit others.</div><br><div>What am I missing?</div><br><br><div><font style="font-family:monospace">kamailio 5.2.3</font></div><br><div><font style="font-family:monospace">Thanks!</font></div><br>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></div><div><a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></div></div></div></div></div>