[SIPForum-discussion] Usage of Authorization header field in SIP request

Abu M. Muttalib abum at aftek.com
Fri Aug 25 17:45:43 UTC 2006


Hi List,

I am building a request and sending it across to the server through thw
places, one from my application and another from soft phone client like
XPro. From XPro I am able to register successfully but from my application I
am not. At both the places I am sending the same request in response to an
earlier REGISTER request.

The below is the log taken from XPro. I have tried sending the same set of
requests from our application, based on the response to our REGISTER
request, but was not able to register.

What is the significance of Authorization User field in XPro? Is it
mandatory to send it on receipt of 401 response from server?

Where the problem lies. Please help in this regards,

Abu.

******************************

SEND TIME: 18745703
SEND >> domain:5070
REGISTER sip:domain.net SIP/2.0
Via: SIP/2.0/UDP
10.0.0.106:5060;rport;branch=z9hG4bK73258C9AF0A64A83BA618E3C0A875DF2
From: xxxxxxxx <sip:xxxxxxxx at domain.net>;tag=256581819
To: xxxxxxxx <sip:xxxxxxxx at domain.net>
Contact: "xxxxxxxx" <sip:xxxxxxxx at 10.0.0.106:5060>
Call-ID: 0D7F68445E284E9DBCA60B32FA64D80B at domain.net
CSeq: 20078 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-PRO release 1103g
Content-Length: 0


RECEIVE TIME: 18746390
RECEIVE << domain:5070
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
10.0.0.106:5060;received=203.129.230.146;branch=z9hG4bK73258C9AF0A64A83BA618
E3C0A875DF2;rport=61886
From: xxxxxxxx <sip:xxxxxxxx at domain.net>;tag=256581819
To: xxxxxxxx <sip:xxxxxxxx at domain.net>;tag=SDo8s2a99-
Call-ID: 0D7F68445E284E9DBCA60B32FA64D80B at domain.net
CSeq: 20078 REGISTER
Content-Length: 0
WWW-Authenticate: Digest
realm="domain.net",domain="sip:domain.net",nonce="274a0e0eb185ec7751b2c831e5
e45219",stale=false,qop="auth",algorithm=MD5


SEND TIME: 18746390
SEND >> domain:5070
REGISTER sip:domain.net SIP/2.0
Via: SIP/2.0/UDP
10.0.0.106:5060;rport;branch=z9hG4bK0AE4DA916C5948DEBF4B7AD2325726D1
From: xxxxxxxx <sip:xxxxxxxx at domain.net>;tag=256581819
To: xxxxxxxx <sip:xxxxxxxx at domain.net>
Contact: "xxxxxxxx" <sip:xxxxxxxx at 10.0.0.106:5060>
Call-ID: 0D7F68445E284E9DBCA60B32FA64D80B at domain.net
CSeq: 20079 REGISTER
Expires: 1800
Authorization: Digest
username="xxxxxxxx at domain.net",realm="domain.net",nonce="274a0e0eb185ec7751b
2c831e5e45219",response="38f896d2d50b0f6646b24efd3be72e11",uri="sip:domain.n
et",algorithm=MD5,qop=auth,cnonce="547CEBB21FD741F79998DED78A2D3A60",nc=0000
0002
Max-Forwards: 70
User-Agent: X-PRO release 1103g
Content-Length: 0


RECEIVE TIME: 18747437
RECEIVE << domain:5070
SIP/2.0 200 OK
Via: SIP/2.0/UDP
10.0.0.106:5060;received=203.129.230.146;branch=z9hG4bK0AE4DA916C5948DEBF4B7
AD2325726D1;rport=61886
From: xxxxxxxx <sip:xxxxxxxx at domain.net>;tag=256581819
To: xxxxxxxx <sip:xxxxxxxx at domain.net>;tag=SDo8s2a99-
Call-ID: 0D7F68445E284E9DBCA60B32FA64D80B at domain.net
CSeq: 20079 REGISTER
Content-Length: 0
Authentication-Info:
nextnonce="274a0e0eb185ec7751b2c831e5e45219",qop=auth,rspauth="ee41c69525c86
f8e8d9cf5b3fd348e1d",cnonce="547CEBB21FD741F79998DED78A2D3A60",nc=00000002
Expires: 70
Service-Route: <sip:another.IP:6666;lr>
Service-Route: <sip:yet.another.IP:7000;lr>

******************************





More information about the discussion mailing list