[sr-dev] ki_jsonrpcs_dispatch(): invalid json doc

Patrick Karton patrickarton at hotmail.com
Tue Nov 16 22:24:22 CET 2021


hello ,

im using kamailio and rtpengine.

i use rtpengine with rtp timeout as follows

rtpengine  --timeout=240 --silent-timeout=600 -b2b-url=http://kamailioip:5060/RPC --xmlrpc-format=2

and in kamailio

modparam("jsonrpcs", "pretty_format", 1)
modparam("jsonrpcs", "transport", 7)

event_route[xhttp:request] {

if ($hu =~ "^/RPC") {
jsonrpc_dispatch();
                xhttp_reply("200", "OK", "text/xml", "<methodResponse><params><param><value><string>OK</string></value></param></params></methodResponse>");
exit;
}

}


rtpengine successfully reaches the rpc endpoint but i have an error on the jsonrpcs module

43(50) ERROR: jsonrpcs [jsonrpcs_mod.c:1275]: ki_jsonrpcs_dispatch(): invalid json doc [[<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>dlg.terminate_dlg</methodName>
<params>
<param><value><string>1-10 at 172.22.244.139</string></value></param>
<param><value><string>10SIPpTag091</string></value></param>
<param><value><string>8U173ymKpc1pp</string></value></param>
</params>
</methodCall>
]]


and so the dialog module can not ends the call


Kamailio 5.5.2 on debian bullseye
rtpengine 10.0.1.8 on debian bullseye

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20211116/a1e007cc/attachment.htm>


More information about the sr-dev mailing list