On Dec 23, 2024, at 10:52 am, Sergio Charrua
<sergio.charrua(a)voip.pt> wrote:
I mean, connection from Kamailio to python "middleware" script will also take
some additional time to be made (even on localhost) and from "middleware" to
STSH API via HTTP ....
Oh, I meant to say here:
You're right, you don't want to make new connections to the "middleware"
here. That's bad. You want persistent connections to the middleware that can be reused
without being initiated anew each time.
EVAPI provides an excellent solution to this, and that's why I use it. In that model,
there are no outbound connections at all, only inbound, not entirely dissimilar to driving
a call with FreeSWITCH ESL or Asterisk ARI or whatever.
But it's not the only option. Plain UDP querying can work too. One program of action
can be to forward the INVITE to a minimal SIP UA as-is, too, and I am familiar with lots
of platforms where this is done. However, there are so many simpler alternatives nowadays.
I think EVAPI is the simplest of them all, but raw UDP may be even simpler:
https://kamailio.org/docs/modules/5.8.x/modules/corex.html#corex.f.send_udp
https://kamailio.org/docs/modules/5.8.x/modules/corex.html#corex.evr.networ…
-- Alex
--
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web:
https://evaristesys.com
Tel: +1-706-510-6800