AWS UDP NLB with only one ip

Viewed 21

I'm trying to build an voip application on EKS. My setup would be something like:

Asterisk -> Kamailio -> PSTN

Where it could be any number of asterisk behind kamailio, and the kamailio function is to give all the asterisk the same ip address in the eyes of the PSTN provider.

Kamailio is behind a load balancer, with a static IP address that I give to the pstn provider to authenticate my requests, but although I can receive traffic through the load balancer, when my kamailio sends a package to them, the IP is different which causes problems.

Is there a way that the load balancer and the ec2 instance running kamailio can share the same IP address?

Or there is another way of exposing kamailio eks service with a static IP address that is no trough a load balancer?

0 Answers
Related