<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks :) did not notice. so i must use xmlrpc module</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> sr-dev <sr-dev-bounces@lists.kamailio.org> de la part de Alex Balashov <abalashov@evaristesys.com><br>
<b>Envoyé :</b> mardi 16 novembre 2021 22:26<br>
<b>À :</b> Kamailio (SER) - Development Mailing List <sr-dev@lists.kamailio.org><br>
<b>Objet :</b> Re: [sr-dev] ki_jsonrpcs_dispatch(): invalid json doc</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Would I be mistaken to think this is an XML document, not a JSON document? :-)<br>
<br>
> On Nov 16, 2021, at 4:24 PM, Patrick Karton <patrickarton@hotmail.com> wrote:<br>
> <br>
> <br>
> hello ,<br>
> <br>
> im using kamailio and rtpengine.<br>
> <br>
> i use rtpengine with rtp timeout as follows<br>
> <br>
> rtpengine  --timeout=240 --silent-timeout=600 -b2b-url=http://kamailioip:5060/RPC --xmlrpc-format=2<br>
> <br>
> and in kamailio <br>
> <br>
> modparam("jsonrpcs", "pretty_format", 1)<br>
> modparam("jsonrpcs", "transport", 7)<br>
> <br>
> event_route[xhttp:request] {<br>
> <br>
> if ($hu =~ "^/RPC") {<br>
> jsonrpc_dispatch();<br>
>                 xhttp_reply("200", "OK", "text/xml", "<methodResponse><params><param><value><string>OK</string></value></param></params></methodResponse>");<br>
> exit;<br>
> }<br>
> <br>
> }<br>
> <br>
> <br>
> rtpengine successfully reaches the rpc endpoint but i have an error on the jsonrpcs module
<br>
> <br>
> 43(50) ERROR: jsonrpcs [jsonrpcs_mod.c:1275]: ki_jsonrpcs_dispatch(): invalid json doc [[<?xml version="1.0" encoding="UTF-8"?><br>
> <methodCall><br>
> <methodName>dlg.terminate_dlg</methodName><br>
> <params><br>
> <param><value><string>1-10@172.22.244.139</string></value></param><br>
> <param><value><string>10SIPpTag091</string></value></param><br>
> <param><value><string>8U173ymKpc1pp</string></value></param><br>
> </params><br>
> </methodCall><br>
> ]]<br>
> <br>
> <br>
> and so the dialog module can not ends the call<br>
> <br>
> <br>
> Kamailio 5.5.2 on debian bullseye<br>
> rtpengine 10.0.1.8 on debian bullseye<br>
> <br>
> Thanks.<br>
> _______________________________________________<br>
> Kamailio (SER) - Development Mailing List<br>
> sr-dev@lists.kamailio.org<br>
> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br>
Web: <a href="http://www.evaristesys.com/">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/">
http://www.csrpswitch.com/</a><br>
<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Development Mailing List<br>
sr-dev@lists.kamailio.org<br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</div>
</span></font></div>
</body>
</html>