Forums Read-only archive

401 Unauthorised for external user

4 posts · Brekeke PBX Forum

StephenC Original post
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/ ... terns.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.
peng
After getting 401, what was happening?
Is that all?
StephenC
Nothing. The phone repeats the register send, and the PBX repeats the 401....
peng
After receiving 401, the UA should send a REGISTER request
again with Authorization header.

Did you set your password at GrandStream?