cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1535
Views
0
Helpful
10
Replies

Changing IP address of connections from AWS towards SIP

vichar
Level 1
Level 1

Hello all,

 

We have installed a PBX on AWS and connected it to our on-prem Router via VPN.

 

My on-prem router is connected to the SIP provider via another on-prem MUX device.

 

All connections are working fine, EXCEPT, my SIP provider has a condition that all connections to their server must originate from a specific IP that they have assigned to us.

 

Since AWS machine is connected via VPN, all calls from PBX are picking up the IP of the AWS machine.

 

For resolving this, i need to change the IPs of all connections from AWS to SIP.
Someone suggested i need NAT loopback/reflection for this.

 

Please guide how can this be done?

Regards.

10 Replies 10

balaji.bandi
Hall of Fame
Hall of Fame

In your case, ask for some reserved IP from AWS, give those IP address to SIP provider, For your PBX IP do static NAT with that Public IP.

 

https://docs.aws.amazon.com/vpc/latest/userguide/VPC_NAT_Instance.html

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thanks Balaji. 

 

However, that is already tried. The SIP provider will allow communications only from the IP that they have provided. 

 

Is that IP routed to your network ?  Still i try to get my head around,

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

It is a private IP assigned to their MUX device which is installed in our premises. We have connected it to our cisco router's WAN port and assigned WAN IP with the same one. 

what is the issue now then ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

The issue is, when calls generate from the PBX in AWS, it's taking the IP of the AWS machine to the SIP provider. 

What we require is NATing / Changing the IP of all communications generating from AWS machine, to the IP provided by SIP. 

We need to understand how is your setup and routing, AWS to internet and MUX to provider.

 

Do you have any HLd diagram,  how are you peering with SIP provider, is the MUX also located in AWS or onsite ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Network Diagram (1).jpg

Where the calls originating from ? If the calls originating from Client, you need make routing decision for that calls to send to MUX- in RV042.

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

All outgoing calls are originating from PBX. clients will communicate with pbx via internet and call will generate from pbx. And from pbx will go via vpn to cisco rv042, and then to mux, and then to sip provider from where will connect to external number. 

 

Someone suggested packet forwarding for replacing AWS IP to mux ip in on-prem environment (maybe via a router or a firewall software). Does it make sense? What is your suggestion, if otherwise.