[Asterisk-Users] Re: Help on Register message with Proxy-Authorization
i found that here Method is REGISTER char * pszNonce= dcd98b7102dd2f0e8b11d0f600bfb0c093; char * pszCNonce = 0a4f113b; char * pszUser = Mufasa; char * pszRealm = [EMAIL PROTECTED]; char * pszPass = Circle Of Life; char * pszAlg = md5; char szNonceCount[9] = 0001; char * pszMethod = REGISTER; char * pszQop = auth; char * pszURI = /dir/index.html; HASHHEX HA1; HASHHEX HA2 = ; HASHHEX Response; digcalc dig; dig.DigestCalcHA1(pszAlg, pszUser, pszRealm, pszPass, pszNonce, pszCNonce, HA1); dig.DigestCalcResponse(HA1, pszNonce, szNonceCount, pszCNonce, pszQop, pszMethod, pszURI, HA2, Response); __ Do you Yahoo!? Jazz up your holiday email with celebrity designs. Learn more. http://celebrity.mail.yahoo.com ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Re: Help on Register message with Proxy-Authorization
The qop method should only be copied from what you receive from the server. If the server doesn't send it, don't send it back. Your pszURI should be the same as the Request-URI Compare your code with the routine build_reply_digest in chan_sip.c Kamran Ahmad wrote: i found that here Method is REGISTER char * pszNonce= dcd98b7102dd2f0e8b11d0f600bfb0c093; char * pszCNonce = 0a4f113b; char * pszUser = Mufasa; char * pszRealm = [EMAIL PROTECTED]; char * pszPass = Circle Of Life; char * pszAlg = md5; char szNonceCount[9] = 0001; char * pszMethod = REGISTER; char * pszQop = auth; char * pszURI = /dir/index.html; HASHHEX HA1; HASHHEX HA2 = ; HASHHEX Response; digcalc dig; dig.DigestCalcHA1(pszAlg, pszUser, pszRealm, pszPass, pszNonce, pszCNonce, HA1); dig.DigestCalcResponse(HA1, pszNonce, szNonceCount, pszCNonce, pszQop, pszMethod, pszURI, HA2, Response); __ Do you Yahoo!? Jazz up your holiday email with celebrity designs. Learn more. http://celebrity.mail.yahoo.com ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Re: Help on Register message with Proxy-Authorization
i have gone through RFC 2617 and able to run the test program but problem i that when i try these values this is not matching with my asterisk proxy response can any one tell me what should be pszMethod here i dont have Qop here char * pszNonce = 539b02d7; char * pszCNonce = ; char * pszUser = 3000; char * pszRealm = asterisk; char * pszPass = kamran; char * pszAlg = md5; char szNonceCount[9] = ; char * pszMethod = ; char * pszQop = ; char * pszURI = sip:192.168.0.11; HASHHEX HA1; HASHHEX HA2 = ; HASHHEX Response; DigestCalcHA1(pszAlg, pszUser, pszRealm, pszPass, pszNonce, pszCNonce, HA1); DigestCalcResponse(HA1, pszNonce, szNonceCount, pszCNonce, pszQop, pszMethod, pszURI, HA2, Response); printf(Response = %s\n, Response); __ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users