[OpenSIPS-Devel] [opensips] JSON Parsing Integers (#494)

Dan Christian Bogos notifications at github.com
Tue May 5 12:57:24 CEST 2015


Hey Vlad,

There should be some catch since in my case the issue still occurs. 
The module looks like fresh compiled (out of master):
```
root at OsipsDev1:/usr/local/src/opensips/opensips_master# ls -la /usr/lib/opensips/modules/ | grep json
-rw-r--r-- 1 root root  23912 May  5 11:35 json.so
```

```
root at OsipsDev1:/usr/local/src/opensips/opensips_master# #
T 2015/05/05 12:55:20.185506 127.0.0.1:42969 -> 127.0.0.1:2080 [AP]
POST /jsonrpc HTTP/1.1.
Host: 127.0.0.1:2080.
Accept: */*.
Content-Type: application/json.
Content-Length: 112.
.
{ "id": "1", "method": "ApierV1.GetMaxSessionTime", "params": [ { "Account": "1001", "Destination": "1001" } ] }
May  5 12:55:20 OsipsDev1 /usr/sbin/opensips[12314]: { "id": "1", "method": "ApierV1.GetMaxSessionTime", "params": [ { "Account": "1001", "Destination": "1001" } ] }
May  5 12:55:20 OsipsDev1 /usr/sbin/opensips[12314]: { "id": "1", "method": "ApierV1.GetMaxSessionTime", "params": [ { "Account": "1001", "Destination": "1001" } ] }
#
T 2015/05/05 12:55:20.186078 127.0.0.1:2080 -> 127.0.0.1:42969 [AP]
HTTP/1.1 200 OK.
Content-Type: application/json.
Date: Tue, 05 May 2015 10:55:20 GMT.
Content-Length: 36.
.
{"id":"1","result":-1,"error":null}

#May  5 12:55:20 OsipsDev1 /usr/sbin/opensips[12314]: In CGR_AUTH_REPLY, reply received: {"id":"1","result":-1,"error":null}#012, result: <null>
```

My way to log that line:
```
xlog("In CGR_AUTH_REPLY, reply received: $json(cgr_auth_reply), result: $json(cgr_auth_reply/result)");
```

If you get time, can u maybe ping me on IRC so we can troubleshoot more interactively?

Thanks,
DanB

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/494#issuecomment-99032489
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150505/6c9a5616/attachment.htm>


More information about the Devel mailing list