|
|
Author |
Message |
StephenC Brekeke Member
Joined: 31 Oct 2006 Posts: 18
|
Posted: Mon Oct 22, 2007 2:21 pm Post subject: 401 Unauthorised for external user |
|
|
1. Brekeke Product Name and version: PBX 2.0.7.2
2. Java version: Standard Edition 6, v1.6.0
3. OS type and the version: Windows 2003 SP2
4. UA (phone), gateway or other hardware/software involved: Grandstream GXP2000
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html : 3
6. Your problem:
Grandstream GXP-2000 client at external site cannot register with Brekeke PBX/SIP - 401 Unauthorised
Draytek 2800V Router is configured with open ports UDP 5060-5062, and 10000-10999, directed to PBX/SIP server
External DNS is configured to direct to our router public interface, and this domain ip address has been put in the network interfaces on the SIP configuration
Packets captured as follows (at PBX end)
--------------------
Received packet from phone:
REGISTER sip:192.168.222.245 SIP/2.0
Via: SIP/2.0/UDP 81.111.191.241:50586;branch=z9hG4bKee8c90b1da0b5ace
From: "LC" <sip:203@192.168.222.245;user=phone>;tag=a614d03ae9b7b75b
To: <sip:203@192.168.222.245;user=phone>
Contact: *
Call-ID: 8ffa7c254e7110ab@192.168.1.11
CSeq: 10001 REGISTER
Expires: 0
User-Agent: Grandstream GXP2000 1.1.0.14
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK
Content-Length: 0
Reply to phone:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 81.111.191.241:50586;branch=z9hG4bKeeee28687dfdbdb4
From: "LC" <sip:203@192.168.222.245;user=phone>;tag=a614d03ae9b7b75b
To: <sip:203@192.168.222.245;user=phone>;tag=1193086850203-394602668
Call-ID: 8ffa7c254e7110ab@192.168.1.11
CSeq: 10001 REGISTER
WWW-Authenticate: Digest realm="host211-121-111-121.in-addr.btopenworld.com",nonce="c9b8a7150d53a5f4382c7b5abda26f0eb4eb6d38"
Content-Length: 0
User 203 is defined in the SIP Server and the PBX, and I have double-checked the passwords at each end. |
|
Back to top |
|
peng Brekeke Guru
Joined: 20 Jul 2005 Posts: 110
|
Posted: Tue Oct 23, 2007 1:54 am Post subject: |
|
|
After getting 401, what was happening?
Is that all? |
|
Back to top |
|
StephenC Brekeke Member
Joined: 31 Oct 2006 Posts: 18
|
Posted: Wed Oct 24, 2007 2:33 pm Post subject: |
|
|
Nothing. The phone repeats the register send, and the PBX repeats the 401.... |
|
Back to top |
|
peng Brekeke Guru
Joined: 20 Jul 2005 Posts: 110
|
Posted: Wed Oct 24, 2007 3:33 pm Post subject: |
|
|
After receiving 401, the UA should send a REGISTER request
again with Authorization header.
Did you set your password at GrandStream? |
|
Back to top |
|
|
|
|
|