Powered by Jitbit Forum free trial version.
home recent topics recent posts search faq  

TekSIP Forum



register | lost password   open id

Messages in this topic - RSS

Home » Installation » 401 Unauthorized

Installation Issues
10.12.2009 06:04:09

venugopal
venugopal
Posts: 2
Hi Yasin,

I would like to use teksip as registrar to troubleshoot IMS phones. I have added my sip username (001001123456789@191.168.0.1) as endpoint in Teksip. But phone receives unauthorized message and tries one more time and my phone crashes finally with 200 OK mesage. Do you think I'm missing some settings? Here is the log. (Due to max size restriction I have skipped the message of the 2nd attempt)


12/9/2009 5:35:46 PM - TekSIP Service 2.3.0.0 (Revision 0) is being started on : 192.168.0.1:5060 [Accounting disabled]

12/9/2009 5:35:51 PM - TekSIP Service is started on : 192.168.0.1:5060

SIP req. from : 192.168.0.20:5060 (UDP) - 12/9/2009 5:36:04 PM

REGISTER sip:192.168.0.1 SIP/2.0
[Via] = SIP/2.0/UDP 192.168.0.20:5060;branch=z9hG4bK4021891787sun;transport=UDP
[Max-Forwards] = 70
[From] = <sip:12223334444@192.168.0.1>;tag=910380257
[To] = <sip:12223334444@192.168.0.1>
[Call-ID] = 3960494426@192.168.0.1
[CSeq] = 118817 REGISTER
[Contact] = <sip:12223334444@192.168.0.20:5060>;q=1.0
[Allow] = INVITE,PRACK,OPTIONS,ACK,BYE,SUBSCRIBE,CANCEL,NOTIFY
[User-Agent] = IMS Client v0.001
[Authorization] = Digest username="001001123456789@192.168.0.1",realm="192.168.0.1",nonce="",uri="sip:192.168.0.1",response="", algorithm=MD5
[Content-Length] = 0

SIP req. to : 192.168.0.20:5060 (UDP) - 12/9/2009 5:36:04 PM

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.20:5060;branch=z9hG4bK4021891787sun;transport=UDP;received=192.168.0.20
From: <sip:12223334444@192.168.0.1>;tag=910380257
To: <sip:12223334444@192.168.0.1>
Call-ID: 3960494426@192.168.0.1
CSeq: 118817 REGISTER
WWW-Authenticate: Digest realm="192.168.0.1", qop="auth", nonce="0e6bb1c53cc8eb26f8978b8dee0b13f6", opaque="", stale=TRUE
Server: TekSIP/v2.3
Content-Length: 0


SIP req. from : 192.168.0.20:5060 (UDP) - 12/9/2009 5:36:06 PM

SIP req. to : 192.168.0.20:5060 (UDP) - 12/9/2009 5:36:06 PM

"Same as above at 5:36:04"

SIP/2.0 401 Unauthorized
"Same as above at 5:36:04"

SIP req. from : 192.168.0.20:5060 (UDP) - 12/9/2009 5:36:06 PM

REGISTER sip:192.168.0.1 SIP/2.0
[Via] = SIP/2.0/UDP 192.168.0.20:5060;branch=z9hG4bK3859347744sun;transport=UDP
[Max-Forwards] = 70
[From] = <sip:12223334444@192.168.0.1>;tag=910380257
[To] = <sip:12223334444@192.168.0.1>
[Call-ID] = 3960494426@192.168.0.1
[CSeq] = 118818 REGISTER
[Contact] = <sip:12223334444@192.168.0.20:5060>;q=1.0
[Allow] = INVITE,PRACK,OPTIONS,ACK,BYE,SUBSCRIBE,CANCEL,NOTIFY
[User-Agent] = IMS Client v0.001
[Authorization] = Digest username="001001123456789@192.168.0.1",realm="192.168.0.1",nonce="0e6bb1c53cc8eb26f8978b8dee0b13f6",algorithm=MD5,uri="sip:192.168.0.1",response="56b79bd32dadc2755d4188785636290f",qop="auth",nc=00000001,cnonce="dsf2323483389526xyx"
[Content-Length] = 0

SIP req. to : 192.168.0.20:5060 (UDP) - 12/9/2009 5:36:06 PM

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.20:5060;branch=z9hG4bK3859347744sun;transport=UDP;received=192.168.0.20
Max-Forwards: 69
From: <sip:12223334444@192.168.0.1>;tag=910380257
To: <sip:12223334444@192.168.0.1>;tag=dc81af2e
Call-ID: 3960494426@192.168.0.1
CSeq: 118818 REGISTER
Contact: <sip:12223334444@192.168.0.20:5060>;q=1.0
Allow: INVITE, BYE, CANCEL, OPTIONS, ACK, REGISTER
Server: TekSIP/v2.3
Date: Thu, 10 Dec 2009 01:36:06 GMT
Content-Length: 0

thanks
Venu
0 permalink
10.12.2009 10:44:53

Admin
Admin
Administrator
Posts: 254
Hi,

Have you defined endpoint's SIP ID as 001001123456789@192.168.0.1 or 001001123456789 in TekSIP?

Best regards,

Yasin KAPLAN
0 permalink
10.12.2009 21:29:01

venugopal
venugopal
Posts: 2
I have added 001001123456789@192.168.0.1 as endpoint
0 permalink
18.12.2009 15:47:02

Admin
Admin
Administrator
Posts: 254
Dear Venu,

Although your initial REGISTER request contains Authorization header, nonce and response parameters are null. That's why you get 401 response until
this paramters properly populated.

Best regards,

Yasin KAPLAN
0 permalink

Home » Installation » 401 Unauthorized





Powered by Jitbit Forum 7.2.3.0 © 2006-2011 Jitbit Software