[Asterisk-Users] sip registration failed
Don LeBlanc
dleblanc at monkey.net
Thu Oct 16 08:05:06 MST 2003
Hello All,
I am trying to get some ATA 188 units to register with my Asterisk box over SIP. I continue to get the same "401 Unauthorized" Error when they try to register. If I turn Sip registration off, I can use the phones without any problems with a static IP assigned in my sip.conf file, but I can't get the second phone port working. I've set up two separate logins both pointing to the same ATA IP address, and both of them only ring phone1 on the ATA. Below is my config. Any help would be greatly appreciated.
[2232121]
type=friend
username=2232121
secret=voip
host=172.16.0.28
context=default
reinvite=no
canreinvite=no
[2232122]
type=friend
username=2232122
secret=voip
host=172.16.0.28
context=default
reinvite=no
canreinvite=no
Here are the debug files.
Sip read: LI>
REGISTER sip:172.16.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232121 at 172.16.0.30;user=phone>;tag=826830340
To: <sip:2232121 at 172.16.0.30;user=phone>
Call-ID: 980168906 at 172.16.0.28
CSeq: 1 REGISTER
Contact: <sip:2232121 at 172.16.0.28:5060;user=phone;transport=udp>;expires=3600
User-Agent: Cisco ATA 188 v2.16.1 ata18x (030709a)
Content-Length: 0
9 headers, 0 lines
Using latest request as basis request
Sending to 172.16.0.28 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232121 at 172.16.0.30;user=phone>;tag=826830340
To: <sip:2232121 at 172.16.0.30;user=phone>;tag=as79088a75
Call-ID: 980168906 at 172.16.0.28
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:2232121 at 172.16.0.30>
Content-Length: 0
to 172.16.0.28:5060
Sip read: LI>
REGISTER sip:172.16.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232122 at 172.16.0.30;user=phone>;tag=200124422
To: <sip:2232122 at 172.16.0.30;user=phone>
Call-ID: 945895659 at 172.16.0.28
CSeq: 1 REGISTER
Contact: <sip:2232122 at 172.16.0.28:5060;user=phone;transport=udp>;expires=3600
User-Agent: Cisco ATA 188 v2.16.1 ata18x (030709a)
Content-Length: 0
9 headers, 0 lines
Using latest request as basis request
Sending to 172.16.0.28 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232122 at 172.16.0.30;user=phone>;tag=200124422
To: <sip:2232122 at 172.16.0.30;user=phone>;tag=as0391e8fc
Call-ID: 945895659 at 172.16.0.28
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:2232122 at 172.16.0.30>
Content-Length: 0
to 172.16.0.28:5060
Sip read: LI>
REGISTER sip:172.16.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232121 at 172.16.0.30;user=phone>;tag=826830340
To: <sip:2232121 at 172.16.0.30;user=phone>
Call-ID: 980168906 at 172.16.0.28
CSeq: 2 REGISTER
Contact: <sip:2232121 at 172.16.0.28:5060;user=phone;transport=udp>;expires=3600
User-Agent: Cisco ATA 188 v2.16.1 ata18x (030709a)
Content-Length: 0
9 headers, 0 lines
Using latest request as basis request
Sending to 172.16.0.28 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232121 at 172.16.0.30;user=phone>;tag=826830340
To: <sip:2232121 at 172.16.0.30;user=phone>;tag=as01a85c0b
Call-ID: 980168906 at 172.16.0.28
CSeq: 2 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:2232121 at 172.16.0.30>
Content-Length: 0
to 172.16.0.28:5060
Sip read: LI>
REGISTER sip:172.16.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232122 at 172.16.0.30;user=phone>;tag=200124422
To: <sip:2232122 at 172.16.0.30;user=phone>
Call-ID: 945895659 at 172.16.0.28
CSeq: 2 REGISTER
Contact: <sip:2232122 at 172.16.0.28:5060;user=phone;transport=udp>;expires=3600
User-Agent: Cisco ATA 188 v2.16.1 ata18x (030709a)
Content-Length: 0
9 headers, 0 lines
Using latest request as basis request
Sending to 172.16.0.28 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232122 at 172.16.0.30;user=phone>;tag=200124422
To: <sip:2232122 at 172.16.0.30;user=phone>;tag=as3da9516a
Call-ID: 945895659 at 172.16.0.28
CSeq: 2 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:2232122 at 172.16.0.30>
Content-Length: 0
to 172.16.0.28:5060
Sip read: LI>
REGISTER sip:172.16.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232121 at 172.16.0.30;user=phone>;tag=826830340
To: <sip:2232121 at 172.16.0.30;user=phone>
Call-ID: 980168906 at 172.16.0.28
CSeq: 3 REGISTER
Contact: <sip:2232121 at 172.16.0.28:5060;user=phone;transport=udp>;expires=3600
User-Agent: Cisco ATA 188 v2.16.1 ata18x (030709a)
Content-Length: 0
9 headers, 0 lines
Using latest request as basis request
Sending to 172.16.0.28 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232121 at 172.16.0.30;user=phone>;tag=826830340
To: <sip:2232121 at 172.16.0.30;user=phone>;tag=as6f9879ac
Call-ID: 980168906 at 172.16.0.28
CSeq: 3 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:2232121 at 172.16.0.30>
Content-Length: 0
to 172.16.0.28:5060
Sip read: LI>
REGISTER sip:172.16.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232122 at 172.16.0.30;user=phone>;tag=200124422
To: <sip:2232122 at 172.16.0.30;user=phone>
Call-ID: 945895659 at 172.16.0.28
CSeq: 3 REGISTER
Contact: <sip:2232122 at 172.16.0.28:5060;user=phone;transport=udp>;expires=3600
User-Agent: Cisco ATA 188 v2.16.1 ata18x (030709a)
Content-Length: 0
9 headers, 0 lines
Using latest request as basis request
Sending to 172.16.0.28 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232122 at 172.16.0.30;user=phone>;tag=200124422
To: <sip:2232122 at 172.16.0.30;user=phone>;tag=as4f83c0f2
Call-ID: 945895659 at 172.16.0.28
CSeq: 3 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:2232122 at 172.16.0.30>
Content-Length: 0
to 172.16.0.28:5060
Sip read: LI>
REGISTER sip:172.16.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232121 at 172.16.0.30;user=phone>;tag=826830340
To: <sip:2232121 at 172.16.0.30;user=phone>
Call-ID: 980168906 at 172.16.0.28
CSeq: 4 REGISTER
Contact: <sip:2232121 at 172.16.0.28:5060;user=phone;transport=udp>;expires=3600
User-Agent: Cisco ATA 188 v2.16.1 ata18x (030709a)
Content-Length: 0
9 headers, 0 lines
Using latest request as basis request
Sending to 172.16.0.28 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232121 at 172.16.0.30;user=phone>;tag=826830340
To: <sip:2232121 at 172.16.0.30;user=phone>;tag=as4a71a7ff
Call-ID: 980168906 at 172.16.0.28
CSeq: 4 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:2232121 at 172.16.0.30>
Content-Length: 0
to 172.16.0.28:5060
Sip read: LI>
REGISTER sip:172.16.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232122 at 172.16.0.30;user=phone>;tag=200124422
To: <sip:2232122 at 172.16.0.30;user=phone>
Call-ID: 945895659 at 172.16.0.28
CSeq: 4 REGISTER
Contact: <sip:2232122 at 172.16.0.28:5060;user=phone;transport=udp>;expires=3600
User-Agent: Cisco ATA 188 v2.16.1 ata18x (030709a)
Content-Length: 0
9 headers, 0 lines
Using latest request as basis request
Sending to 172.16.0.28 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.28:5060
From: <sip:2232122 at 172.16.0.30;user=phone>;tag=200124422
To: <sip:2232122 at 172.16.0.30;user=phone>;tag=as2c81018f
Call-ID: 945895659 at 172.16.0.28
CSeq: 4 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:2232122 at 172.16.0.30>
Content-Length: 0
to 172.16.0.28:5060
talktome*CLI>
Sorry about the length of the message. By the way, Asterisk kicks butt!
Sincerely, Don LeBlanc
Systems Admin
North Texas Web Services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20031016/f51bc005/attachment.htm
More information about the asterisk-users
mailing list