<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>OK, good to know.</p>
<p>I think one should assume that you can give the parameters
without quotes when the value is to be retrieved, not when the
parameter is a variable that should be set. Anyhow, if it is not
an expression (e.g., concatenation, addition), then the parameter
can be inside double quotes always.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 09.07.19 11:20, Igor Olhovskiy
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DD991A8E-62AF-448C-8E91-E59C3BB3CACF@getmailspring.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>Sorry for late answer, but this helps!</div>
<br>
<div>Thanks!</div>
<br>
<div class="gmail_quote_attribution">On Jul 3 2019, at 3:39 pm,
Daniel-Constantin Mierla <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a> wrote:</div>
<blockquote>
<div>
<div>
<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>
<div>Daniel</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr">
<div>On Wed, Jul 3, 2019 at 2:04 PM Igor Olhovskiy <<a
href="mailto:igorolhovskiy@gmail.com"
title="mailto:igorolhovskiy@gmail.com"
moz-do-not-send="true">igorolhovskiy@gmail.com</a>>
wrote:</div>
</div>
<blockquote>
<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>
<div>_______________________________________________</div>
<div>Kamailio (SER) - Users Mailing List</div>
<div><a href="mailto:sr-users@lists.kamailio.org"
title="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">sr-users@lists.kamailio.org</a></div>
<div><a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
title="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></div>
</blockquote>
</div>
<br>
<br>
<div>--</div>
<div class="gmail_signature">
<div>
<div>
<div>
<div>Daniel-Constantin Mierla - <a
href="https://link.getmailspring.com/link/DD991A8E-62AF-448C-8E91-E59C3BB3CACF@getmailspring.com/0?redirect=http%3A%2F%2Fwww.asipto.com&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn"
title="http://www.asipto.com"
moz-do-not-send="true">http://www.asipto.com</a></div>
<div><a
href="https://link.getmailspring.com/link/DD991A8E-62AF-448C-8E91-E59C3BB3CACF@getmailspring.com/1?redirect=http%3A%2F%2Ftwitter.com%2F%23!%2Fmiconda&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn"
title="http://twitter.com/#!/miconda"
moz-do-not-send="true">http://twitter.com/#!/miconda</a>
- <a
href="https://link.getmailspring.com/link/DD991A8E-62AF-448C-8E91-E59C3BB3CACF@getmailspring.com/2?redirect=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fmiconda&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn"
title="http://www.linkedin.com/in/miconda"
moz-do-not-send="true">http://www.linkedin.com/in/miconda</a></div>
</div>
</div>
</div>
</div>
<div>_______________________________________________</div>
<div>Kamailio (SER) - Users Mailing List</div>
<div><a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a></div>
<div><a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></div>
</div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
</body>
</html>