Re: [SR-Users] Send JSON document over http and process response

2016-08-22 Thread Jonathan Hunter
Hey Colin, Perfect will try it out. Thanks very much. Jon Get Outlook for iOS On Mon, Aug 22, 2016 at 2:57 PM +0100, "Colin Morelli" wrote: Hey Jonathan, You can also use the Jansson module to create the JSON request. For example, in one of my configs, I have a route that looks basical

Re: [SR-Users] Send JSON document over http and process response

2016-08-22 Thread Colin Morelli
Hey Jonathan, You can also use the Jansson module to create the JSON request. For example, in one of my configs, I have a route that looks basically like: $var(params) = $null; jansson_set("string", "request.uri", "$ru", "$var(params)"); jansson_set("string", "request.method", "$rm", "$var(params

[SR-Users] Send JSON document over http and process response

2016-08-22 Thread Jonathan Hunter
Hi Guys, I need to send a JSON document over HTTP to a server, and then process the response, both in the kamailio configuration file. I assume I need to use Jansson module to extract contents of response? What is the best method for generating the initial request containing JSON ? Many thanks Jo