<div dir="ltr"><div>I need to pass the json values through HTTP Request, (i.e Invoking through browser like postman client)<br><br></div>Kindly provide me the json lcr.reload key values.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Kind Regards,<br></div>Logeshwaran G<br></div></div></div>
<br><div class="gmail_quote">On Wed, Aug 16, 2017 at 5:05 PM, Logeshwaran G <span dir="ltr"><<a href="mailto:logeshwarangs@gmail.com" target="_blank">logeshwarangs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks for detailed explanation.<br><br></div>Kindly provide me the example json key parameter for lcr.reload.<br><br></div>It will be much helpful<br></div><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_1364684136478851410gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Kind Regards,<br></div>Logeshwaran G<br></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Wed, Aug 16, 2017 at 4:31 PM, Sebastian Damm <span dir="ltr"><<a href="mailto:damm@sipgate.de" target="_blank">damm@sipgate.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Unless you want to trigger that after receiving some kind of "SIP<br>
control packet", you would rather add something like this in your<br>
kamailio.cfg:<br>
<br>
event_route[xhttp:request] {<br>
  if ($hu =~ "^/jsonrpc") {<br>
    xlog("L_NOTICE", "Got jsonrpc request, body '$rb'\n");<br>
    jsonrpc_dispatch();<br>
  } else {<br>
    xhttp_reply("500", "Internal Server Error", "text/html",<br>
      "<html><body>Unsupported URL $hu</body></html>");<br>
  }<br>
  return;<br>
}<br>
<br>
Then you would use curl or a script in the language of your choice and<br>
send a request to<br>
    http://kamailio_ip:kamailio_tc<wbr>p_listen_port/jsonrpc<br>
with the json string in the body.<br>
<div class="m_1364684136478851410HOEnZb"><div class="m_1364684136478851410h5"><br>
Best Regards,<br>
Sebastian<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>