I am using the below config : event_route[xhttp:request] {
if ($hu =~ "^/RPCHIDDEN/") { //jsonrpc_dispatch(); set_reply_no_connect(); # optional dispatch_rpc(); } else { xhttp_reply("403", "OK", "text/html", "<html><body>Forbidden</body></html>"); } return; } I have enabled : #!ifdef WITH_XMLRPC # ----- xmlrpc params ----- modparam("xmlrpc", "route", "XMLRPC"); modparam("xmlrpc", "url_match", "^/RPCHIDDEN/") #!endif While executing kamailio.cfg the below error occured: 0(7342) ERROR: <core> [core/cfg.y:3274]: yyparse(): cfg. parser: failed to find command dispatch_rpc (params 0) Thanks & Kind Regards, Logeshwaran G On Wed, Aug 16, 2017 at 6:11 PM, Sebastian Damm <d...@sipgate.de> wrote: > On Wed, Aug 16, 2017 at 1:59 PM, Logeshwaran G <logeshwara...@gmail.com> > wrote: > > I need to pass the json values through HTTP Request, (i.e Invoking > through > > browser like postman client) > > > > Kindly provide me the json lcr.reload key values. > > Something like this should work: > > curl -X POST --data > '{"id":260,"method":"lcr.reload","jsonrpc":"2.0","params":[]}' > http://$kamailio_ip:$kamailio_port/jsonrpc > > BR > Sebastian > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users