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
--
Henning Westerholt –
https://skalatan.de/blog/
Kamailio services –
https://gilawa.com
-----Original Message-----
From: Jon Bonilla (Manwe) via sr-users <sr-users(a)lists.kamailio.org>
Sent: Dienstag, 18. Juni 2024 21:09
To: Brett Nemeroff <brett(a)voicefoxtelephony.com>om>; Kamailio (SER) - Users
Mailing List <sr-users(a)lists.kamailio.org>
Cc: Jon Bonilla (Manwe) <manwe(a)sipdoc.net>
Subject: [SR-Users] Re: exec concurrency
El Tue, 18 Jun 2024 13:54:41 -0500
Brett Nemeroff <brett(a)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?
--
PekePBX, the multitenant PBX solution
https://pekepbx.com