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@lists.kamailio.org>
> Sent: Dienstag, 18. Juni 2024 21:09
> To: Brett Nemeroff <br...@voicefoxtelephony.com>; Kamailio (SER) - Users
> Mailing List <sr-users@lists.kamailio.org>
> Cc: Jon Bonilla (Manwe) <ma...@sipdoc.net>
> Subject: [SR-Users] Re: exec concurrency
> 
> El Tue, 18 Jun 2024 13:54:41 -0500
> Brett Nemeroff <br...@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
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to