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
