From mespio@gmail.com Mon Jan 8 08:34:06 2018 From: Mojtaba To: sr-users@lists.kamailio.org Subject: [SR-Users] Error in parse json documents in kamailio with jansson module Date: Mon, 08 Jan 2018 11:03:56 +0330 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1288556573==" --===============1288556573== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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"); $var(data) = $mongodb(res=>value); } The result in syslog is like this: Jan 8 07:23:36 ubuntu14 /usr/local/sbin/kamailio[12127]: {1 2 INVITE MDRlMjRlNGVjZGY1Y2JkYjA5OGM2ZTg1ZTFjZTk0Nzg.} INFO: