[Asterisk-Users] SIP Error 401 Problem
Kenige Ho
kengiepanda at gmail.com
Mon Jan 16 02:58:51 MST 2006
Dear All,
I am having this strange problem on my Asterisk 1.2.1. We have a web dialer
that can register to the Asterisk box in Hong Kong, but another user using
the same account can't register to the Asterisk box using the same web
dialer. Below is an output of the sip debug logs. It seems that the digest
is missing the username and password, but why? I have also have this call
flow for the an IP Phone, but after a while, it will register to the
Asterisk. One thing I don't understand is that I have registered
successfully in Hong Kong and when the user tries in South Africa, it
doesn't work. Please Help!
SIP Logs:
From: XXXXXXXX <sip:XXXXXXXX at XXX.XXX.XX.XXX>
To: XXXXXXXX <sip:XXXXXXXX at XXX.XXX.XX.XXX>
Call-ID: 1d3c5f0-6d7f-43cc33ac at XXX.XXX.XX.XXX
CSeq: 2 REGISTER
Contact: *
User-Agent: VaxSIP UserAgent/1.0
Expires: 0
Max-Forwards: 70
Content-Length: 0
--- (11 headers 0 lines)---
Using latest REGISTER request as basis request
Sending to 192.168.0.3 : 2232 (non-NAT)
Transmitting (NAT) to 196.38.228.123:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.3:2232;received=196.38.228.123
From: XXXXXXXX <sip:XXXXXXXX at XXX.XXX.XX.XXX>
To: XXXXXXXX <sip:XXXXXXXX at XXX.XXX.XX.XXX>
Call-ID: 1d3c5f0-6d7f-43cc33ac at XXX.XXX.XX.XXX
CSeq: 2 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Contact: <sip:XXXXXXXX at XXX.XXX.XX.XXX>
Content-Length: 0
---
Transmitting (NAT) to 196.38.228.123:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.3:2232;received=196.38.228.123
From: XXXXXXXX <sip:XXXXXXXX at XXX.XXX.XX.XXX>
To: XXXXXXXX <sip:XXXXXXXX at XXX.XXX.XX.XXX>;tag=as63889026
Call-ID: 1d3c5f0-6d7f-43cc33ac at XXX.XXX.XX.XXX
CSeq: 2 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Contact: <sip:XXXXXXXX at XXX.XXX.XX.XXX>
WWW-Authenticate: Digest realm="asterisk", nonce="4929aec7"
Content-Length: 0
Regards,
Kengie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060116/1db20f5a/attachment.htm
More information about the asterisk-users
mailing list