reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
repro::Registrar Class Reference

#include <Registrar.hxx>

Inheritance diagram for repro::Registrar:
[legend]

Public Member Functions

 Registrar ()
 
virtual ~Registrar ()
 
void setProxy (Proxy *proxy)
 
virtual void addRegistrarHandler (RegistrarHandler *handler)
 
virtual void onRefresh (resip::ServerRegistrationHandle, const resip::SipMessage &reg)
 Called when registration is refreshed.
 
virtual void onRemove (resip::ServerRegistrationHandle, const resip::SipMessage &reg)
 called when one or more specified contacts is removed
 
virtual void onRemoveAll (resip::ServerRegistrationHandle, const resip::SipMessage &reg)
 Called when all the contacts are removed using "Contact: *".
 
virtual void onAdd (resip::ServerRegistrationHandle, const resip::SipMessage &reg)
 Called when one or more contacts are added.
 
virtual void onQuery (resip::ServerRegistrationHandle, const resip::SipMessage &reg)
 Called when a client queries for the list of current registrations.
 
- Public Member Functions inherited from resip::ServerRegistrationHandler
virtual ~ServerRegistrationHandler ()=default
 
virtual void getGlobalExpires (const SipMessage &msg, const std::shared_ptr< MasterProfile > &masterProfile, uint32_t &expires, uint32_t &returnCode)
 When processing a REGISTER request, return the desired expires value when processing the "Expires" header.
 
virtual void getContactExpires (const NameAddr &contact, const std::shared_ptr< MasterProfile > &masterProfile, uint32_t &expires, uint32_t &returnCode)
 When processing a REGISTER request, return the desired expires value by processing this contact's expires parameter.
 
virtual bool asyncProcessing (void) const
 If true, the registration processing will use the async* functions here and will not use the RegistrationPersistenceManager.
 
virtual void asyncGetContacts (ServerRegistrationHandle, const Uri &aor)
 Called when a REGISTER is first received to retrieve the current list.
 
virtual void asyncUpdateContacts (ServerRegistrationHandle, const Uri &aor, std::unique_ptr< ContactPtrList > modifiedContactList, std::unique_ptr< ContactRecordTransactionLog > transactionLog)
 Notifies the handler to update the current contact list for the AOR to the specified list that has been updated by DUM's registration processing.
 
virtual void asyncRemoveExpired (ServerRegistrationHandle, const resip::Uri &aor, std::unique_ptr< resip::ContactPtrList > contacts)
 Notifies the handler to remove the entries specified in the contacts parameter.
 

Detailed Description

Definition at line 40 of file Registrar.hxx.

Constructor & Destructor Documentation

◆ Registrar()

Registrar::Registrar ( )

Definition at line 16 of file Registrar.cxx.

◆ ~Registrar()

Registrar::~Registrar ( )
virtual

Definition at line 20 of file Registrar.cxx.

Member Function Documentation

◆ addRegistrarHandler()

void Registrar::addRegistrarHandler ( RegistrarHandler *  handler)
virtual

Definition at line 25 of file Registrar.cxx.

◆ onAdd()

void Registrar::onAdd ( resip::ServerRegistrationHandle  ,
const resip::SipMessage &  reg 
)
virtual

Called when one or more contacts are added.

This is after authentication has all succeeded

Implements resip::ServerRegistrationHandler.

Definition at line 94 of file Registrar.cxx.

◆ onQuery()

void Registrar::onQuery ( resip::ServerRegistrationHandle  ,
const resip::SipMessage &  reg 
)
virtual

Called when a client queries for the list of current registrations.

Implements resip::ServerRegistrationHandler.

Definition at line 115 of file Registrar.cxx.

◆ onRefresh()

void Registrar::onRefresh ( resip::ServerRegistrationHandle  ,
const resip::SipMessage &  reg 
)
virtual

Called when registration is refreshed.

Implements resip::ServerRegistrationHandler.

Definition at line 31 of file Registrar.cxx.

◆ onRemove()

void Registrar::onRemove ( resip::ServerRegistrationHandle  ,
const resip::SipMessage &  reg 
)
virtual

called when one or more specified contacts is removed

Implements resip::ServerRegistrationHandler.

Definition at line 52 of file Registrar.cxx.

◆ onRemoveAll()

void Registrar::onRemoveAll ( resip::ServerRegistrationHandle  ,
const resip::SipMessage &  reg 
)
virtual

Called when all the contacts are removed using "Contact: *".

Implements resip::ServerRegistrationHandler.

Definition at line 73 of file Registrar.cxx.

◆ setProxy()

void repro::Registrar::setProxy ( Proxy *  proxy)
inline

Definition at line 46 of file Registrar.hxx.


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