Thanks :) did not notice. so i must use xmlrpc module

De : sr-dev <sr-dev-bounces@lists.kamailio.org> de la part de Alex Balashov <abalashov@evaristesys.com>
Envoyé : mardi 16 novembre 2021 22:26
À : Kamailio (SER) - Development Mailing List <sr-dev@lists.kamailio.org>
Objet : Re: [sr-dev] ki_jsonrpcs_dispatch(): invalid json doc
 
Would I be mistaken to think this is an XML document, not a JSON document? :-)

> On Nov 16, 2021, at 4:24 PM, Patrick Karton <patrickarton@hotmail.com> wrote:
>
>
> 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@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.
> _______________________________________________
> Kamailio (SER) - Development Mailing List
> sr-dev@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev