OK, good to know.
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.
Cheers,
Daniel
On 09.07.19 11:20, Igor Olhovskiy wrote:
Sorry for late answer, but this helps!
Thanks!
On Jul 3 2019, at 3:39 pm, Daniel-Constantin Mierla
<miconda(a)gmail.com> wrote:
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
<igorolhovskiy(a)gmail.com <mailto:igorolhovskiy@gmail.com>> 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
sr-users(a)lists.kamailio.org <mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -
http://www.asipto.com
<https://link.getmailspring.com/link/DD991A8E-62AF-448C-8E91-E59C3BB3CACF@getmailspring.com/0?redirect=http%3A%2F%2Fwww.asipto.com&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn>
http://twitter.com/#!/miconda
<https://link.getmailspring.com/link/DD991A8E-62AF-448C-8E91-E59C3BB3CACF@getmailspring.com/1?redirect=http%3A%2F%2Ftwitter.com%2F%23!%2Fmiconda&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn>
-
http://www.linkedin.com/in/miconda
<https://link.getmailspring.com/link/DD991A8E-62AF-448C-8E91-E59C3BB3CACF@getmailspring.com/2?redirect=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fmiconda&recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn>
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users