[reSIProcate] registration on sipphone.com

Dmytro Bogovych subscribe at satorilight.com
Mon Aug 29 08:16:00 CDT 2005


Greetings.

May anyone to help me implement registration on proxy01.sipphone.com?

Looks like this registrar using WWW-Authenticate authorization scheme.
I tried to implement this as

void MyUserAgent::onFailure(ClientRegistrationHandle h, const SipMessage&  
response)
{
   int responseCode = response.header(h_StatusLine).statusCode();
   if ( responseCode == 401 || responseCode == 407 )
   {
     if (response.exists(h_WWWAuthenticates))
     {
       const ParserContainer<Auth>& wwwAuth =  
response.header(h_WWWAuthenticates);
       Data nonceData = wwwAuth.front().param(p_nonce);
       //Data nonceData = wwwAuth.find(p);
       Helper::addAuthorization(this->mRegMessageStored, response,  
mRegistrarUri.user(), mRegistrarUri.password(), nonceData,  
this->mNonceCount);

       mRegMessageStored.header(h_CSeq).sequence()++;
       mRegMessageStored.header(h_Vias).front().remove(p_branch);
       mRegMessageStored.header(h_Vias).front().param(p_branch);
       mDum.send(mRegMessageStored);
       return;
     }
   }
}

But server doesn't respond to my second packet :(
May anyone to help me?


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the resiprocate-devel mailing list