Re: [OpenSIPS-Users] Global variable $rm gives number when using $json

2021-02-02 Thread Alex Kinch
On Tue, 2 Feb 2021 at 20:11, Liviu Chircu wrote: > This problem is identical to the previous one and the patch for the > $json variable should cover both of them. Make sure you're using the > nightly 3.1 packages or wait for the 3.1.2 release, after which you can > test out the fix. Sorry,

Re: [OpenSIPS-Users] Global variable $rm gives number when using $json

2021-02-02 Thread Alex Kinch
On Tue, 2 Feb 2021 at 20:11, Liviu Chircu wrote: This problem is identical to the previous one and the patch for the > $json variable should cover both of them. Make sure you're using the > nightly 3.1 packages or wait for the 3.1.2 release, after which you can > test out the fix. > Thanks

Re: [OpenSIPS-Users] Global variable $rm gives number when using $json

2021-02-02 Thread Alex Kinch
ot;dialled": "XX" } Feb 2 16:24:13 [1119] INVITE request from XX to XX received Feb 2 16:24:13 [1119] AF is INET6 proto is udp Feb 2 16:24:13 [1119] Making request to invite service... Feb 2 16:24:13 [1119] Request is { "call_id": "XX", "ts": &quo

Re: [OpenSIPS-Users] Global variable $rm gives number when using $json

2021-01-19 Thread Alex Kinch
On Tue, 19 Jan 2021 at 17:17, Liviu Chircu wrote: > For 3.1, I think we're still in the right time window to backport this > fix without breaking any opensips.cfg files. I'm using 3.1 so quite happy with that proposal :) Thanks for the fast response and fix, much appreciated. Alex

[OpenSIPS-Users] Global variable $rm gives number when using $json

2021-01-18 Thread Alex Kinch
Hi all, I'm trying to post a few variables in JSON in OpenSIPS 3.1, but $rm is returning a number instead of the method in the JSON. If I do something like this: $json(body) := "{}"; $json(body/call_id) = $ci; $json(body/ts) = $time(%Y-%m-%d %H:%M:%SZ); $json(body/src_ip) = $si;