<div dir="ltr"><div><div>Also If I commented the dispatch_rpc();<br><br></div>Kamailio is running but it dosent accepting the http request.<br><br></div>Please Guide me.<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 Thu, Aug 17, 2017 at 12:39 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>I am using the below config :<br><br>event_route[xhttp:request] {<br><br>     if ($hu =~ "^/RPCHIDDEN/") {<br>                //jsonrpc_dispatch();<br>                set_reply_no_connect(); # optional<br>           dispatch_rpc();<br>        } else {<br>        xhttp_reply("403", "OK", "text/html",<br>            "<html><body>Forbidden</body><<wbr>/html>");<br>    }<br>    return;<br>}<br><br></div>I have enabled :<br>#!ifdef WITH_XMLRPC<br># ----- xmlrpc params -----<br>modparam("xmlrpc", "route", "XMLRPC");<br>modparam("xmlrpc", "url_match", "^/RPCHIDDEN/")<br>#!endif<br><br></div>While executing kamailio.cfg the below error occured:<br><br> 0(7342) ERROR: <core> [core/cfg.y:3274]: yyparse(): cfg. parser: failed to find command dispatch_rpc (params 0)<br><br><br><div><div><br></div></div></div><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_-6954252113495192150gmail_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 6:11 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"><span>On Wed, Aug 16, 2017 at 1:59 PM, Logeshwaran G <<a href="mailto:logeshwarangs@gmail.com" target="_blank">logeshwarangs@gmail.com</a>> wrote:<br>
> I need to pass the json values through HTTP Request, (i.e Invoking through<br>
> browser like postman client)<br>
><br>
> Kindly provide me the json lcr.reload key values.<br>
<br>
</span>Something like this should work:<br>
<br>
curl -X POST --data<br>
'{"id":260,"method":"lcr.reloa<wbr>d","jsonrpc":"2.0","params":[]<wbr>}'<br>
http://$kamailio_ip:$kamailio_<wbr>port/jsonrpc<br>
<br>
BR<br>
<div class="m_-6954252113495192150HOEnZb"><div class="m_-6954252113495192150h5">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>