Multiple source IP

#1

Hi~
We have two kind of service in 1 Asterisk System.
It is separated by IP Address.
Service 1 : 2.2.2.1
Service 2 : 2.2.2.2

The default IP of System is 2.2.2.1

The service Provider’s IP Switch (IP : 10.10.10.1) call SIP Message by Service.
In case Service 1, IP Switch call SIP to “2.2.2.1” with source IP (10.10.10.1)
In case Service 2, IP Switch call SIP to “2.2.2.2” with source IP (10.10.10.1)

In case Service 2, our Asterisk IVR Outgoing SIP Call to IP Switch with Destination IP (10.10.10.1) and source IP (2.2.2.1) because the default IP of Asterisk IVR System is 2.2.2.1

But We want to call outbound to IP Switch with Destination IP (10.10.10.1) and source IP (2.2.2.2)

How can set Asterisk Source IP?

and in case Service 2, IP Switch(10.10.10.1) send “Invite Message” to 2.2.2.2.
Our Asterisk IVR send ack message with source IP (2.2.2.1) because default source IP systme is 2.2.2.1.
and IP Switch send next sip message to 2.2.2.1 because our ack message with source IP (2.2.2.1)

Can I change the source IP address from 2.2.2.1 to 2.2.2.2 in case of Service 2?

Please answer me~~ ^^

0 Likes

#2

Best solution would be to make your internet configuration a valid internet configuraion.

Failing that, I’d suggest running two instances of Asterisk, bound to different interfaces.

0 Likes