I am trying to use JSONRPC-S Kamailio module to request for example the content of the location table. More generally, i would like to send RPC commands to my kamailio server using http request.
For the moment, kamailio server always returns "400 bad request: corrupted packet".
To send my request, i use curl. For example:
curl --header 'Content-Type: application/json' --data-binary "{"id": 1, "jsonrpc": "2.0", "method": "ul.dump" }" http://XXX.XXX.XXX.XXX/RPC/
Is there specific syntax to respect?
Kamailio server version is 4.3.2.
Thank you in advance.