[Resolved] * Working fine with IP, but not with Domain Name


#1

I set up my * server using its publc IP address.

Now that i switch over to using the domain name, X-Lite can’t log in.

=========With Domain Name (doesnt work)============
Transmitting (NAT) to 85.250.206.46:6007:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 85.250.179.93;branch=z9hG4bK-d87543-895382184-1–d87543-;received=85.250.206.46;rport=6007
From: Dansip:110010@sip1.sippal.com;tag=42134245
To: Dansip:110010@sip1.sippal.com;tag=as67377eb5
Call-ID: 184e0832a904b418
CSeq: 1 REGISTER
User-Agent: SipPal.com PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:110010@217.174.248.199
WWW-Authenticate: Digest realm=“sip1.sippal.com”, nonce="137207aa"
Content-Length: 0

=======but with IP (it works)======================
Transmitting (NAT) to 85.250.206.46:6008:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 85.250.179.93;branch=z9hG4bK-d87543-88348619-1–d87543-;received=85.250.206.46;rport=6008
From: Dansip:110010@217.174.248.199;tag=0722ab3a
To: Dansip:110010@217.174.248.199;tag=as2c26be3f
Call-ID: 405079332136844f
CSeq: 2 REGISTER
User-Agent: SipPal.com PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 3600
Contact: sip:110010@85.250.179.93;expires=3600
Date: Sun, 09 Oct 2005 17:30:35 GMT
Content-Length: 0

Can anyone help me resolve this so that i can enter the Domain name into X-lite instead of an IP address?


#2

This has nothing to do with Asterisk or X-Lite but the fact that either the DNS server you are using or how you have registered your domain name is not properly propogated. In otherwords, this has to do with the DNS.


#3

Youre right. I managed to figure that out some how.

Its strange though that it should not authenticate because of this though.

Basically what had happened was, the asterisk server has two ip address. Asterisk had selected one and the domain was pointing to the other IP address. I simply added sip.conf bindaddr to bind * to the correct Ip address and it resolved the problem.

Very strange quirk if you ask me.

Thanks for your help
Dan


#4

[quote=“DanJourno”]Youre right. I managed to figure that out some how.

Its strange though that it should not authenticate because of this though.

Basically what had happened was, the asterisk server has two ip address. Asterisk had selected one and the domain was pointing to the other IP address. I simply added sip.conf bindaddr to bind * to the correct Ip address and it resolved the problem.

Very strange quirk if you ask me.

Thanks for your help
Dan[/quote]

You could have it bind to both address by changing to 0.0.0.0 as well. This is a funciton of IP and it is good that Asterisk allows this granularity.