How to register with md5Digest

Mar 12, 2012 at 6:15 PM

Hi,

i've tryed a lot. I am getting Messages from my registrar (HSS-user unknown) and i can see, that there is no Authorization-Header in the initial REGISTER-Message.

How can I set this SIPAuthenticationHeader, before starting the SIPRegistrationUserAgent?



Thanks in advance,

Till

Coordinator
Mar 13, 2012 at 12:54 PM

You could send an authorisation header in the initial REGISTER request by replacing line 240 with:

SIPRequest authenticatedRequest = GetAuthenticatedRegistrationRequest(sipTransaction.TransactionRequest, sipResponse);
SIPNonInviteTransaction regAuthTransaction = m_sipTransport.CreateNonInviteTransaction(authenticatedRequest, sipTransaction.RemoteEndPoint, localSIPEndPoint, m_outboundProxy);

However that's unlikely to have the outcome you desire. The reason there is no authentication header in the original request is because the nonce needs to be obtained from the server. Very few, if any, servers are going to accept an authorisation header with an arbitrary nonce.