Re: [OpenSIPS-Users] json module issues

2014-07-08 Thread Kurtis Heimerl
Looks like 0.11: ubuntu@ip-172-31-27-53:~$ apt-cache show libjson0 Package: libjson0 Priority: required Section: libs Installed-Size: 29 Maintainer: Ubuntu Developers Original-Maintainer: fabien boucher Architecture: amd64 Source: json-c Version: 0.11-3ubuntu1.2 Depends: libjson-c2 Filename: poo

Re: [OpenSIPS-Users] json module issues

2014-07-08 Thread Vlad Paiu
Hello, There have been some recent changes to the JSON module in terms of parsing the error codes ( some old code got deprecated on versions < 0.9 ) and we had to do some compile-time detection of the version of libjson used ( since the JSON library only exports a version macro starting with

Re: [OpenSIPS-Users] json module issues

2014-07-08 Thread Kurtis Heimerl
I bumped up the debug, seeing this in the logs: Jul 8 16:51:47 SERVERNAME /usr/sbin/opensips[30188]: ERROR:json:pv_set_json: Error parsing json: success Jul 8 16:51:47 SERVERNAME /usr/sbin/opensips[30188]: ERROR:core:do_assign: setting PV failed Jul 8 16:51:47 SERVERNAME /usr/sbin/opensips[3018

Re: [OpenSIPS-Users] json module issues

2014-07-08 Thread Kurtis Heimerl
Huh. I tried the default json code too ( http://lists.opensips.org/pipermail/devel/2009-September/004177.html) $json(obj1) := "{}"; # initialize an empty JSON object $json(obj1/key) = "value"; #replace or insert the (key,value) #pair into the json object;

Re: [OpenSIPS-Users] json module issues

2014-07-07 Thread Răzvan Crainea
Hi, Kurtis! I've just run your test and the output seems ok: Kurtis [ 1, 2 ] Are you sure there is no other function between those two lines that could delete the json? Also, what version of OpenSIPS are you using? Best regards, Razvan Crainea OpenSIPS Core Developer http://www.opensips-solut

[OpenSIPS-Users] json module issues

2014-07-07 Thread Kurtis Heimerl
Hey All, I seem to be having some very simple issues with the json module. The following code in my config: $json(k) := "[1,2]"; xlog("L_ERR","Kurtis $json(k)"); Is producing the following output: Jul 7 23:59:00 NAME /usr/sbin/opensips[6379]: Kurtis2 This looks to be as simple as I can get a