[Asterisk-Users] Re: Help on Register message with Proxy-Authorization

Karl Brose khb at brose.com
Sun Dec 26 09:55:31 MST 2004


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 = "testrealm at 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
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at 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
>
>  
>



More information about the asterisk-users mailing list