Hi all!

Just wondering what would be you opinion on the following.

We are integrating Kamailio as a stateless redirect server, using SIP 300 Multiple Choices response. The script requires that prior to the redirection, a HTTP request must be made.

We thought about using HTTP Async Client to make the requests (POST of JSON content), which is our prefered way of sending HTTP requests,  and depending on the response from the REST API, reply back to UAC a SIP 300 Multiple Choices message and terminate the call flow on Kamailio.

From what I know, HTTP Async Client requires that the TM module be used, which (it is my understanding) will imply that the whole Kamailio script to be stateful, which I think is useless as the SIP flow will be really simple:

INVITE ----->
<------- 100 Trying
<------- 300 Multiple Choices
ACK ------>

There is a catch, though, the CPS is very high, above 1000 CPS....

Could anyone share their thoughts on this?
Should we go stateful and use the HTTP Async module?
Should we go stateless and use the HTTP client module?
What would be the best approach to implementing this?

Thanks guys!

Sérgio Charrua