Dear,
When using : sudo kamctl address reload
sipsecure@kamailio:/$ sudo kamctl address reload
[sudo] password for sipsecure:
{
"jsonrpc": "2.0",
"result": "Reload OK",
"id": 73482
}
I looked for the command I could use in kamailio.cfg
route[JSON_ADDRESS_RELOAD]{
xlog("MY_SEVERITY"," RPC REQUEST : RELOAD ADDRESS TABLE");
jsonrpc_exec('{"jsonrpc": "2.0","method":
"permissions.addressReload"}');
exit;
}
Now I am able to call a rpc command from the code ;-)
Best Regards
--
Youssef
Show replies by date