<div dir="ltr">Hello<div><br clear="all"><div><div style="font-family:Verdana;font-size:12px">I am trying to use JSONRPC-S Kamailio module to request for example <span style="color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify">the content of the location table. More generally, i would like to send RPC commands to my kamailio server using http request.</span></div><div style="font-family:Verdana;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify">For the moment, kamailio server always returns "400 bad request: corrupted packet".</span></div><div style="font-family:Verdana;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify"><br></span></div><div style="font-family:Verdana;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify">To send my request, i use curl. For example:</span></div><div style="font-family:Verdana;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify"><br></span></div><div style=""><span style="text-align:justify"><font color="#000000" face="Helvetica, Arial"><span style="font-size:12px">curl --header 'Content-Type: application/json' --data-binary "{"id": 1, "jsonrpc": "2.0", "method": "ul.dump" }"</span></font></span><span style="font-size:12px;color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify"> <a href="http://XXX.XXX.XXX.XXX/RPC/">http://XXX.XXX.XXX.XXX/RPC/</a></span></div><div style="font-family:Verdana;font-size:12px"><br></div><div style="font-family:Verdana;font-size:12px">Is there specific syntax to respect?</div><div style="font-family:Verdana;font-size:12px">Kamailio server version is 4.3.2.<br></div><div style="font-family:Verdana;font-size:12px"><br></div><div style="font-family:Verdana;font-size:12px">Thank you in advance.</div></div><div>Loic BOISSY</div><div><br></div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="color:rgb(136,136,136)"></div></div></div></div></div></div></div></div></div></div>
</div></div>

<br>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><div style="font-size:12.8000001907349px"><span style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">Visit</span><span style="color:rgb(84,84,84);line-height:18.2000007629395px"> Digigram at </span><span style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">IBC2015</span><span style="color:rgb(84,84,84);line-height:18.2000007629395px"> at </span><span style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">Stand 8</span><span style="color:rgb(84,84,84);line-height:18.2000007629395px">.</span><span style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">C51</span><span style="color:rgb(84,84,84);line-height:18.2000007629395px">, </span><span style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">Sept</span><span style="color:rgb(84,84,84);line-height:18.2000007629395px">. </span><span style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">11-15</span><span style="color:rgb(84,84,84);line-height:18.2000007629395px"> in </span><span style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">Amsterda<wbr>m</span></div><div style="font-size:12.8000001907349px"><font color="#545454" face="arial, sans-serif"><span style="line-height:18.2000007629395px">Register <a href="http://www.ibc.org/page.cfm/link=478" style="color:rgb(17,85,204)" target="_blank">here</a> for your <b>FREE</b> pass with Digigram's Exhibitor Customer Code <b>4462</b></span></font></div></div>