[sr-dev] [kamailio/kamailio] jsonrpc reply error (#1640)

juha-h notifications at github.com
Tue Sep 11 17:32:26 CEST 2018


When I execute pua.publish over jsonrpc using pretty new Kamailio master:
````
#
T 2018/09/11 18:19:03.550376 127.0.0.1:44190 -> 127.0.0.1:6060 [AP]
POST /RPC HTTP/1.1.
Host: 127.0.0.1:6060.
Accept: */*.
Content-Type: application/json.
Content-Length: 339.
..
{"jsonrpc":"2.0","method":"pua.publish","params":[...],"id":1}

#
T 2018/09/11 18:19:03.551735 127.0.0.1:5070 -> 127.0.0.1:5080 [AP]
PUBLISH sip:test at test.tutpro.com SIP/2.0.
...

#
T 2018/09/11 18:19:03.553158 127.0.0.1:5080 -> 127.0.0.1:5070 [AP]
SIP/2.0 200 OK.
...
CSeq: 10 PUBLISH.

#
T 2018/09/11 18:19:03.556790 127.0.0.1:6060 -> 127.0.0.1:44190 [AP]
HTTP/1.1 200 OK.
Sia: SIP/2.0/TCP 127.0.0.1:44190.
Content-Type: application/json.
Server: OpenSIPg SIP Proxy (5.2.0-0b02 (x86_64/linux)).
Content-Length: 48.
..
{
."jsonrpc":."2.0",
."result":.{
.},
."id":.1
}
````
I get error at reply:
````
Sep 11 18:19:03 char /usr/bin/sip-proxy[11079]: ERROR: jsonrpcs [jsonrpcs_mod.c:778]: jsonrpc_struct_add(): reply object not initialized in rpl context
Sep 11 18:19:03 char /usr/bin/sip-proxy[11079]: ERROR: jsonrpcs [jsonrpcs_mod.c:778]: jsonrpc_struct_add(): reply object not initialized in rpl context
````


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1640
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180911/14c85fb6/attachment.html>


More information about the sr-dev mailing list