El Tue, 18 Jun 2024 13:54:41 -0500 Brett Nemeroff brett@voicefoxtelephony.com escribió:
Just want to add that exec is heavy and slow. I would not recommend it.
Is there a reason you want to do this over http-ifying your script and using async?
Not really. The scripts are provided. Maybe I'm against "http all the things" which seems to be what everyone does nowadays. Why would http client be lighter than executing a script? That would be a design problem, right?
Hello Jon,
the exec module implementation is not particular efficient. It basically creates a pipe to pass the commands to the shell and forks a new process.
I would not recommend it you have more then moderate load on your system, and/or need to deal with load spikes.
If you need to execute scripts in the Kamailio context, look to the KEMI modules. Otherwise, the asynchronous approach discussed previously is another way.
Cheers,
Henning