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

Alex Kinch alex at alexkinch.com
Tue Feb 2 16:32:56 EST 2021


Hi Liviu,

Just found another similar related issue so thought I'd pop it on the same
thread.

$socket_in(af) returns INET or INET6 as expected but after passing through
$json it's numeric and 0 in both cases.

Redacted examples below. I'm on 3.1.1 from Debian/Ubuntu packages.

Thanks,
Alex

Feb  2 16:24:11 [1095] INVITE request from XX to XX received
Feb  2 16:24:11 [1095] AF is INET proto is udp
Feb  2 16:24:11 [1095] Making request to invite service...
Feb  2 16:24:11 [1095] Request is { "call_id": "XX", "ts": "2021-02-02
16:24:11Z", "src_ip": "XX", "src_port": 63412, "dst_ip": "XX", "dst_port":
5060, "dst_af": 0, "proto": "udp", "method": "INVITE", "sip_from":
"sip:XX", "sip_to": "sip:XX", "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": "2021-02-02
16:24:13Z", "src_ip": "XX", "src_port": 50505, "dst_ip": "XX", "dst_port":
5060, "dst_af": 0, "proto": "udp", "method": "INVITE", "sip_from":
"sip:XX", "sip_to": "sip:XX", "dialled": "XX" }


On Tue, 19 Jan 2021 at 17:22, Alex Kinch <alex at alexkinch.com> wrote:

> On Tue, 19 Jan 2021 at 17:17, Liviu Chircu <liviu at opensips.org> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210202/a4bebf07/attachment.html>


More information about the Users mailing list