<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);">
<div>hello ,</div>
<div><br>
</div>
<div>im using kamailio and rtpengine.</div>
<div><br>
</div>
<div>i use rtpengine with rtp timeout as follows</div>
<div><br>
</div>
<div>rtpengine  --timeout=240 --silent-timeout=600 -b2b-url=http://kamailioip:5060/RPC --xmlrpc-format=2</div>
<div><br>
</div>
<div>and in kamailio </div>
<div><br>
</div>
<div>modparam("jsonrpcs", "pretty_format", 1)</div>
<div>modparam("jsonrpcs", "transport", 7)</div>
<div><br>
</div>
<div>event_route[xhttp:request] {</div>
<div><br>
</div>
<div>if ($hu =~ "^/RPC") {</div>
<div>jsonrpc_dispatch();</div>
<div>                xhttp_reply("200", "OK", "text/xml", "<methodResponse><params><param><value><string>OK</string></value></param></params></methodResponse>");</div>
<div>exit;</div>
<div>}</div>
<div><br>
</div>
<div>}</div>
<div><br>
</div>
<div><br>
</div>
<div>rtpengine successfully reaches the rpc endpoint but i have an error on the jsonrpcs module
</div>
<div><br>
</div>
<div>43(50) ERROR: jsonrpcs [jsonrpcs_mod.c:1275]: ki_jsonrpcs_dispatch(): invalid json doc [[<?xml version="1.0" encoding="UTF-8"?></div>
<div><methodCall></div>
<div><methodName>dlg.terminate_dlg</methodName></div>
<div><params></div>
<div><param><value><string>1-10@172.22.244.139</string></value></param></div>
<div><param><value><string>10SIPpTag091</string></value></param></div>
<div><param><value><string>8U173ymKpc1pp</string></value></param></div>
<div></params></div>
<div></methodCall></div>
<div>]]</div>
<div><br>
</div>
<div><br>
</div>
<div>and so the dialog module can not ends the call</div>
<div><br>
</div>
<div><br>
</div>
<div>Kamailio 5.5.2 on debian bullseye</div>
<div>rtpengine 10.0.1.8 on debian bullseye</div>
<div><br>
</div>
Thanks.<br>
</div>
</body>
</html>