[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Partysip-dev] ProtySip authorization error- 401
From: |
Venkateswaran |
Subject: |
[Partysip-dev] ProtySip authorization error- 401 |
Date: |
Mon, 22 Mar 2004 15:25:59 -0800 |
Hi,
I am getting 401 message only even i parsed the authorization detail as
follows .Please any body help me how to resolve this problem.I am using
PartySIP for registering.
**********************************
I have added following line in libosip msg_register.c file:
url_parse(dest->strtline->rquri, getsipconf("sipregistrar"));
if (previous->proxy_authenticate != NULL)
if (previous->www_authenticate != NULL)
osip_create_authorization_header(previous, tp, username , passwd , &auth );
sfree(tmp);
/* if some headers and params exist remove unwanted information if
They do not appear on request URI */
/* TODO... */
dest->authorization = auth;
Following are SIP messages while registering:
REGISTER sip:10.1.0.60:5060 SIP/2.0
Via: SIP/2.0/UDP 10.1.0.40:5060
From: <sip:address@hidden>
To: <sip:address@hidden>
Call-ID: address@hidden
CSeq: 2 REGISTER
Contact: <sip:address@hidden>
Proxy-Authorization: Digest username="Ram", realm="10.1.0.60",
nonce="12dcf793f2abf7a30f6b6b6fdd43beeb", uri="sip:address@hidden",
response="0aecc94f78dbe3f39e67cce1098716fb", algorithm=MD5,
Opaque="cd050b6fe282f465605c8f5a625af150"
expires: 3600
Content-Length: 0
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.1.0.40:5060
From: <sip:address@hidden>
To: <sip:address@hidden>
Call-ID: address@hidden
CSeq: 2 REGISTER
WWW-Authenticate: Digest realm="10.1.0.60",
nonce="12dcf793f2abf7a30f6b6b6fdd43beeb",
Opaque="cd050b6fe282f465605c8f5a625af150"
Content-Length: 0
Thanks in advance
Venkatesh
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Partysip-dev] ProtySip authorization error- 401,
Venkateswaran <=