[SR-Users] Re: making HTTP requests in stateless redirects

2024-04-08 Thread Alex Balashov via sr-users
EVAPI is quite low-overhead.—Sent from mobile, apologies for brevity and errors.On Apr 8, 2024, at 12:34 PM, Sergio Charrua wrote:@Alex Balashov I thought about EVAPI but I'm afraid it will bring a lot of unnecessary CPU overload, and in my case I need to have maximum CPS on this server (used

[SR-Users] Re: making HTTP requests in stateless redirects

2024-04-08 Thread Sergio Charrua via sr-users
@Alex Balashov I thought about EVAPI but I'm afraid it will bring a lot of unnecessary CPU overload, and in my case I need to have maximum CPS on this server (used for as STIR/SHAKEN with a REST API...)- Will have a try with EVAPI. *Sérgio Charrua* On Mon, Apr 8, 2024 at 6:14 PM Alex Balashov

[SR-Users] Re: making HTTP requests in stateless redirects

2024-04-08 Thread Sergio Charrua via sr-users
@Ben Kaufman : thanks, I will try that! @Nick Digalaks : isn't that necessary to have a correct http async transaction? the async_http module does make/need the TM module to be loadedand all examples I got for the async_http module had t_newtran() method added prior to executing http

[SR-Users] Re: making HTTP requests in stateless redirects

2024-04-08 Thread Nick Digalakis via sr-users
I didn't test this, but why are you calling t_newtran(); if you only want to send the 300 response? On Apr 8, 2024 18:12, Sergio Charrua via sr-users wrote:Hi all!For testing purposes, while I am waiting for the ST/SH REST API to be available from other teams, I developed a small python REST API

[SR-Users] Re: making HTTP requests in stateless redirects

2024-04-08 Thread Ben Kaufman via sr-users
> The kamailio script, completely stateless as I do not need to keep track of > the sessions, iterates through one of the JSON branches and adds the > destination URLs to the Contact header and replies a SIP 300 Multiple Choices. The term 'stateless' in the scope of a SIP proxy doesn't mean to

[SR-Users] Re: making HTTP requests in stateless redirects

2024-04-08 Thread Alex Balashov via sr-users
> On Apr 8, 2024, at 11:12 AM, Sergio Charrua via sr-users > wrote: > > Also, as this is a stateless script, is there another way of using async http > or making http requests to a REST API without having to use TM Module? You can always use an outside service, which communicates with