[SR-Users] On the fly Change
Logeshwaran G
logeshwarangs at gmail.com
Thu Aug 17 09:13:43 CEST 2017
Also If I commented the dispatch_rpc();
Kamailio is running but it dosent accepting the http request.
Please Guide me.
Thanks & Kind Regards,
Logeshwaran G
On Thu, Aug 17, 2017 at 12:39 PM, Logeshwaran G <logeshwarangs at gmail.com>
wrote:
> 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/39457b17/attachment.html>
More information about the sr-users
mailing list