Below is my config:
firewall (nat) -> asterisk
188.8.131.52 -> 192.168.1.1
184.108.40.206 -> 192.168.1.2
sip proxy registration to 220.127.116.11 is ok but 18.104.22.168 fails.
could we specify multiple externip?
pls kindly advise.
sip client will register the same server via 2 different ip addresses but using the same sip account (that is 2)
If sip proxy is defined as 22.214.171.124 and username is 2, registration is ok.
If sip proxy is defined as 126.96.36.199 and username is 2, registration fails.
below is the sip messages
<— Transmitting (NAT) to 188.8.131.52:23370 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.123.123:5062;branch=z9hG4bKc0374d9eef;received=184.108.40.206
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="2b9067c3"
Try to switch your externip to 220.127.116.11 and see what happens.
I would use externhost instead and define a host name like voip.yourdomain.com.
For that host you add each of the public a-records as well as SRV records accordingly.
Do you register with your upstream? If not your upstream might have to use this host as the adress to terminate incoming calls.