Sam,
Alot of SIP is based from http, RFC3261 section 22.4 defines the
digest authentication method and refers to RFC 2069 with some rules.
Regards,
Wayne Davies
sam n <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
29/09/2004 11:07 AM
Please respond to sam n
To: [EMAIL PROTECTED]
cc:
Subject: [Sip-implementors] Authentication probelm:
Hi,
I'm having trouble calculating the "response" value required by the
Authorization header of the REGISTER method. The algorithm in use is
MD5 and the way I calculate the response is by forming the message as
"<nonce>:<password>" and then hash using a MD5 encrypt util. Is this
message form correct?
Pasted below is SIP Message produced by a softphone which logged in
successfully. My application doesn't seem to produce the same response
value seen in the Authorization header. I have been trying other
combinations like "<nonce>:<password>:<realm>" as the message to
digest, but nothing produces the same result.
REGISTER sip:acme.net SIP/2.0
Via: SIP/2.0/UDP
192.168.0.16:5060;rport;branch=z9hG4bKF1022EE7E48543678905FC0269C1A682
From: Gernot Heiser <sip:[EMAIL PROTECTED]>
To: Gernot Heiser <sip:[EMAIL PROTECTED]>
Contact: "Gernot Heiser" <sip:[EMAIL PROTECTED]:5060>
Call-ID: [EMAIL PROTECTED]
CSeq: 56397 REGISTER
Expires: 1800
Authorization: Digest
username="gernot",realm="BroadWorks",nonce="1096344600876",response="369df0bc0c49c4bfd1e64d1feff02672",uri="sip:acme.net",algorithm=MD5
Max-Forwards: 70
User-Agent: X-PRO build 1101
Content-Length: 0
SIP/2.0 200 OK
Via:SIP/2.0/UDP
192.168.0.16:5060;branch=z9hG4bKF1022EE7E48543678905FC0269C1A682;rport
From:"Gernot Heiser"<sip:[EMAIL PROTECTED]>
To:"Gernot Heiser"<sip:[EMAIL PROTECTED]>
Call-ID:[EMAIL PROTECTED]
CSeq:56397 REGISTER
Contact:<sip:[EMAIL PROTECTED]:5060>;q=0.5;expires=1799
Content-Length:0
Could someone please help me out?
Thanks in advance.
Regards,
Sam
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
******************************************************************************
- NOTICE FROM DIMENSION DATA AUSTRALIA
This message is confidential, and may contain proprietary or legally privileged
information. If you have received this email in error, please notify the sender and
delete it immediately.
Internet communications are not secure. You should scan this message and any
attachments for viruses. Under no circumstances do we accept liability for any loss
or damage which may result from your receipt of this message or any attachments.
******************************************************************************
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors