Kamran Ahmad
2004-Dec-24 06:09 UTC
[Asterisk-Users] Help on Register message with Proxy-Authorization
Can any one help me in understanding REGISTER message when i send REGISTER message to asterisk it is replying 407 with header Proxy-Authenticate: Digest realm="asterisk",nonce="1011592446" i want password for my user so i entered secret in sip.conf against userid can any one tell me how to handle Proxy-Authenticate and Proxy-Authorization i want to know where to enter the password in my second reply with Proxy-Authorization header and how to encrypt it __________________________________ Do you Yahoo!? Send a seasonal email greeting and help others. Do good. http://celebrity.mail.yahoo.com
Karl Brose
2004-Dec-24 10:28 UTC
[Asterisk-Users] Help on Register message with Proxy-Authorization
Sounds like you are developing an application. You should read RFC-3261 and RFC-2617 Kamran Ahmad wrote:>Can any one help me in understanding REGISTER message >when i send REGISTER message to asterisk it is >replying 407 >with header >Proxy-Authenticate: Digest >realm="asterisk",nonce="1011592446" > >i want password for my user so i entered secret in >sip.conf against userid > >can any one tell me how to handle Proxy-Authenticate >and Proxy-Authorization >i want to know where to enter the password in my >second reply with Proxy-Authorization header and how >to encrypt it > > > > >__________________________________ >Do you Yahoo!? >Send a seasonal email greeting and help others. Do good. >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 > > >
Kamran Ahmad
2004-Dec-25 08:08 UTC
[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
Kamran Ahmad
2004-Dec-26 02:28 UTC
[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 = "testrealm@host.com"; char * pszPass = "Circle Of Life"; char * pszAlg = "md5"; char szNonceCount[9] = "00000001"; 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