[SR-Users] On the fly Change
Logeshwaran G
logeshwarangs at gmail.com
Wed Aug 16 13:35:58 CEST 2017
Thanks for detailed explanation.
Kindly provide me the example json key parameter for lcr.reload.
It will be much helpful
Thanks & Kind Regards,
Logeshwaran G
On Wed, Aug 16, 2017 at 4:31 PM, Sebastian Damm <damm at sipgate.de> wrote:
> Unless you want to trigger that after receiving some kind of "SIP
> control packet", you would rather add something like this in your
> kamailio.cfg:
>
> event_route[xhttp:request] {
> if ($hu =~ "^/jsonrpc") {
> xlog("L_NOTICE", "Got jsonrpc request, body '$rb'\n");
> jsonrpc_dispatch();
> } else {
> xhttp_reply("500", "Internal Server Error", "text/html",
> "<html><body>Unsupported URL $hu</body></html>");
> }
> return;
> }
>
> Then you would use curl or a script in the language of your choice and
> send a request to
> http://kamailio_ip:kamailio_tcp_listen_port/jsonrpc
> with the json string in the body.
>
> Best Regards,
> 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/20170816/f16f2b4e/attachment.html>
More information about the sr-users
mailing list