[SR-Users] Re: Using jsonrpc_dispatch in xhttp:request - is it possible to restrict the RPC that can be invoked ?

2023-03-07 Thread Chaigneau, Nicolas
Sorry, you can ignore this. The build works. I was confused because I saw jansson in the "exclude_modules" list, but apparently the "include_modules" list takes precedence. I now have the jansson module built. :) -Message d'origine- De : Chaigneau, Nicolas Hello, I have another

[SR-Users] Re: Using jsonrpc_dispatch in xhttp:request - is it possible to restrict the RPC that can be invoked ?

2023-03-07 Thread Chaigneau, Nicolas
Hello, I have another question. I've built libjansson from sources, and now I'm trying to find how to configure Kamailio to use it, but I'm not sure how... I see it's using pkg-config, so I've tried to export like this: export PKG_CONFIG_PATH=/.../jansson/2.14/lib/pkgconfig The following

[SR-Users] Re: Using jsonrpc_dispatch in xhttp:request - is it possible to restrict the RPC that can be invoked ?

2023-03-06 Thread Chaigneau, Nicolas
Ah, that looks easy indeed. Just have to build that module. :) Thanks! -Message d'origine- De : Alex Balashov Envoyé : lundi 6 mars 2023 18:30 I don’t think there is any practical RPC method restriction, but parsing the JSON body in script is indeed possible, easy and pretty cheap:

[SR-Users] Re: Using jsonrpc_dispatch in xhttp:request - is it possible to restrict the RPC that can be invoked ?

2023-03-06 Thread Alex Balashov
I don’t think there is any practical RPC method restriction, but parsing the JSON body in script is indeed possible, easy and pretty cheap: https://kamailio.org/docs/modules/5.6.x/modules/jansson.html — Alex > On Mar 6, 2023, at 11:57 AM, Chaigneau, Nicolas > wrote: > > Hello, > I’m using