DUM Registering and Authenticating

From reSIProcate
Revision as of 16:12, 25 November 2009 by Sgodin (talk | contribs) (New page: The following bits are required in order to build an application that registers with a SIP registrar, and has the ability to respond to Digest Authentication challenges: * You need to inst...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The following bits are required in order to build an application that registers with a SIP registrar, and has the ability to respond to Digest Authentication challenges:

  • You need to install a ClientAuthManager:
mDum->setClientAuthManager(std::auto_ptr<ClientAuthManager>(new ClientAuthManager));
  • You need to register a ClientRegistrationHandler:
mDum->setClientRegistrationHandler(this);
  • You need to set Digest Credentials on your active profile:
profile->setDigestCredential(realm, user, password);
profile->setDefaultFrom(selfAor);
  • You need to implement the registration handlers you installed in step 2.