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
Sorry for late answer, but this helps!
Thanks!
On Jul 3 2019, at 3:39 pm, Daniel-Constantin Mierla <miconda@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@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 3ERROR: <core> [core/action.c:1518]: do_action(): run action error at: /etc/kamailio/kamailio.cfg:1030
Also tried withjannson_get(".pi", ...);jannson_get('/"pi"', ...);and a bit others.
What am I missing?
kamailio 5.2.3
Thanks!
_______________________________________________Kamailio (SER) - Users Mailing List
--Daniel-Constantin Mierla - http://www.asipto.com_______________________________________________Kamailio (SER) - Users Mailing List
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda