reSIProcate/DialogUsageManager  9694
Public Member Functions
resip::RegistrationCreator Class Reference

This class creates registration requests on behalf of a client. More...

#include <RegistrationCreator.hxx>

Inheritance diagram for resip::RegistrationCreator:
Inheritance graph
[legend]
Collaboration diagram for resip::RegistrationCreator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RegistrationCreator (DialogUsageManager &dum, const NameAddr &target, SharedPtr< UserProfile > userProfile, UInt32 RegistrationTime)

Detailed Description

This class creates registration requests on behalf of a client.

It has nothing to do with server handling of registration requests.

Definition at line 17 of file RegistrationCreator.hxx.


Constructor & Destructor Documentation

RegistrationCreator::RegistrationCreator ( DialogUsageManager dum,
const NameAddr target,
SharedPtr< UserProfile userProfile,
UInt32  RegistrationTime 
)

Definition at line 12 of file RegistrationCreator.cxx.

References DebugLog, resip::Data::Empty, h_RequestLine, resip::BaseCreator::makeInitialRequest(), resip::BaseCreator::mLastRequest, and resip::ClientRegistration::tagContact().

   : BaseCreator(dum, userProfile)
{
   makeInitialRequest(target, target, REGISTER);
   mLastRequest->header(h_RequestLine).uri().user() = Data::Empty;
   mLastRequest->header(h_Expires).value() = registrationTime;

   // Tag Contact with rInstance, InstanceId, regId, and/or methods parameter according to profile settings
   ClientRegistration::tagContact(mLastRequest->header(h_Contacts).front(), dum, userProfile);
   
   DebugLog ( << "RegistrationCreator::RegistrationCreator: " << mLastRequest);   
}

Here is the call graph for this function:


The documentation for this class was generated from the following files: