[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") {
                xhttp_reply("200", "OK", "text/xml", "<methodResponse><params><param><value><string>OK</string></value></param></params></methodResponse>");


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"?>
<param><value><string>1-10 at</string></value></param>

and so the dialog module can not ends the call

Kamailio 5.5.2 on debian bullseye
rtpengine on debian bullseye

-------------- 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