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
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");