Relay? NAT?


#1

Hi!

I’m newbie using VoIP and Asterisk and I’d like somebody to help-me!

I have this situation:

PAP2 --> 192.168.0.1 --> 192.168.0.2 --> PAP2

All adapters in my company are configured to use IP 192.168.0.1 as proxy server but now we moved Asterix to 192.168.0.2 on a new and better machine!

In our situation we can’t put the IP 192.168.0.1 in the new asterisk installation because the machine with this IP has some other applications configured to use this specific IP address.

As we have many PAP2 to reconfigure I’d like to keep PAP2 using 192.168.0.1 and when PAP2 tries to register (login) the machine 192.168.0.1 automatically redirects the requisition to 192.168.0.2 and PAP2 makes the registration (login).

I’d like a way to connect (login) my PAP2 (configured to proxy 192.168.0.1) direct to 192.168.0.2 so all traffic are made direct between PAP2 and 192.168.0.2… and I have no traffic between PAP2 and 192.168.0.1… before the login (registration)…

NOTE: All asterisk accounts are now created on 192.168.0.2 - 192.168.0.1 has only asterisk… (no users configured)

Is it possible? If it’s, what’s the name of this technique? Relay? NAT?

I’d like more information, so I can search for a solution!

thanks a lot!