[SR-Users] Reload htable

Olle E. Johansson oej at edvina.net
Sat Mar 28 08:27:34 CET 2015


On 27 Mar 2015, at 14:50, Alex Balashov <abalashov at evaristesys.com> wrote:

> This command is not exposed within the route script. This is a fairly common situation with modules; some "meta" functionality like this that is available externally (via MI, RPC, etc.) is not available within the route script.
http://kamailio.org/docs/modules/4.2.x/modules/jsonrpc-s.html#jsonrpc-s.f.jsonrpc_exec

In 4.2 the jsonrpc-s module introduced a way to execute RPC commands from within the routing script. Awsome!

Example 1.3. jsonrpc_exec usage

...
jsonrpc_exec({"jsonrpc": "2.0", "method": "dispatcher.reload", "id": 1}');
...



/O


More information about the sr-users mailing list