On 12.04.21 15:09, Daniel-Constantin Mierla wrote:
On 12.04.21 14:52, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
the jsonrpcs module exports a function that executes rpc commands from command line, jsonrpcs_exec() iirc.
Thanks for the tip. It sounds a bit heavy weight though.
It is like the rpc command, but faster, without the network/fifo file I/O, all operations are in memory. I do not expect there is any significant performance penalty, specially if you need it in exceptional cases.
Btw, whenever there is a concern in performance, one can configure latency measurement for actions with:
* https://www.kamailio.org/wiki/cookbooks/5.4.x/core#latency_limit_action
Set it to a low value and you should see in the logs how long it takes to execute the actions. The latency_log has to be less or equal to debug value.
Cheers, Daniel