[SR-Users] On the fly Change
Logeshwaran G
logeshwarangs at gmail.com
Thu Aug 17 09:09:08 CEST 2017
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 <damm at sipgate.de> wrote:
> On Wed, Aug 16, 2017 at 1:59 PM, Logeshwaran G <logeshwarangs at 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 at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170817/0176c2c4/attachment.html>
More information about the sr-users
mailing list