I have a machine which is going to run an asterisk instance. This machine may or may not be assigned a specific known virtual IP.
I have clients that must be registered to asterisk both from the same machine, thus using the machine’s normal IP, or from outside using the known virtual IP. At the same time, all calls originating from asterisk must only show the known virtual IP.
Basically, I’d like to bind asterisk to the known virtual IP, but at the same time accept registrations from every network interface. This so that every client can register, but outgoing calls will only show that specific IP.
I’ve tried externip but I don’t really have a NAT so I’m not sure if it can even done with that. Any tips? Thanks.