Re: [SR-Users] Error in parse json documents in kamailio with jansson module

2018-01-08 Thread Daniel-Constantin Mierla
Hello, the issue is triggered by the fact that the JSON document has $xyz tokens (e.g., $oid), which match the kamailio variables format, and the jansson_get() tries to replace them, but no such variable is exported by kamailio, throwing an error. Try to replace $ with $$ inside the $var(data), s

[SR-Users] Error in parse json documents in kamailio with jansson module

2018-01-07 Thread Mojtaba
Hello, I used ndbmongo module in kamailio, I used mongodb_find command to get some data from mongo, like this: if(mongodb_find("sermongo", "Asterisk", "user", "{ \"number\" : \"$fU\" }", "res")) { xlog("L_INFO", "Data from mongodb is \" $mongodb(res=>value) \" \n");