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

#include <MessageSilo.hxx>

Inheritance diagram for repro::MessageSilo:
[legend]

Public Member Functions

 MessageSilo (ProxyConfig &config, resip::Dispatcher *asyncDispatcher)
 
virtual ~MessageSilo ()
 
virtual processor_action_t process (RequestContext &)
 
virtual bool asyncProcess (AsyncProcessorMessage *msg)
 
virtual bool onRefresh (resip::ServerRegistrationHandle, const resip::SipMessage &reg)
 Note: These very closely mimic the ServerRegistrationHandler callbacks.
 
virtual bool onRemove (resip::ServerRegistrationHandle, const resip::SipMessage &reg)
 called when one or more specified contacts is removed
 
virtual bool onRemoveAll (resip::ServerRegistrationHandle, const resip::SipMessage &reg)
 Called when all the contacts are removed using "Contact: *".
 
virtual bool onAdd (resip::ServerRegistrationHandle, const resip::SipMessage &reg)
 Called when one or more contacts are added.
 
virtual bool onQuery (resip::ServerRegistrationHandle, const resip::SipMessage &reg)
 Called when a client queries for the list of current registrations.
 
- Public Member Functions inherited from repro::AsyncProcessor
 AsyncProcessor (const resip::Data &name, resip::Dispatcher *asyncDispatcher, ChainType type=NO_TYPE)
 
virtual ~AsyncProcessor ()
 
- Public Member Functions inherited from repro::Processor
 Processor (const resip::Data &name, ChainType type=NO_TYPE)
 
virtual ~Processor ()
 
virtual void setChainType (ChainType type)
 
virtual ChainType getChainType () const
 
virtual void setName (const resip::Data &name)
 
virtual const resip::Data & getName () const
 
virtual void pushAddress (const std::vector< short > &address)
 
virtual void pushAddress (const short address)
 
virtual const std::vector< short > & getAddress () const
 
- Public Member Functions inherited from repro::RegistrarHandler
virtual ~RegistrarHandler ()
 

Additional Inherited Members

- Public Types inherited from repro::Processor
enum  ChainType { NO_TYPE =0 , REQUEST_CHAIN , RESPONSE_CHAIN , TARGET_CHAIN }
 
enum  processor_action_t { Continue , WaitingForEvent , SkipThisChain , SkipAllChains }
 
- Protected Attributes inherited from repro::AsyncProcessor
resip::Dispatcher * mAsyncDispatcher
 
- Protected Attributes inherited from repro::Processor
std::vector< short > mAddress
 
ChainType mType
 
resip::Data mName
 

Detailed Description

Definition at line 13 of file MessageSilo.hxx.

Constructor & Destructor Documentation

◆ MessageSilo()

MessageSilo::MessageSilo ( ProxyConfig &  config,
resip::Dispatcher *  asyncDispatcher 
)

Definition at line 63 of file MessageSilo.cxx.

◆ ~MessageSilo()

MessageSilo::~MessageSilo ( )
virtual

Definition at line 114 of file MessageSilo.cxx.

Member Function Documentation

◆ asyncProcess()

bool MessageSilo::asyncProcess ( AsyncProcessorMessage *  msg)
virtual

Implements repro::AsyncProcessor.

Definition at line 225 of file MessageSilo.cxx.

◆ onAdd()

bool MessageSilo::onAdd ( resip::ServerRegistrationHandle  ,
const resip::SipMessage &  reg 
)
virtual

Called when one or more contacts are added.

This is after authentication has all succeeded

Implements repro::RegistrarHandler.

Definition at line 342 of file MessageSilo.cxx.

◆ onQuery()

virtual bool repro::MessageSilo::onQuery ( resip::ServerRegistrationHandle  ,
const resip::SipMessage &  reg 
)
inlinevirtual

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

Implements repro::RegistrarHandler.

Definition at line 28 of file MessageSilo.hxx.

◆ onRefresh()

virtual bool repro::MessageSilo::onRefresh ( resip::ServerRegistrationHandle  ,
const resip::SipMessage &  reg 
)
inlinevirtual

Note: These very closely mimic the ServerRegistrationHandler callbacks.

For all of the below callbacks - return true if no response was generated and processing should continue. If all handlers return true, then the Registrar will accept the request. Called when registration is refreshed

Implements repro::RegistrarHandler.

Definition at line 24 of file MessageSilo.hxx.

◆ onRemove()

virtual bool repro::MessageSilo::onRemove ( resip::ServerRegistrationHandle  ,
const resip::SipMessage &  reg 
)
inlinevirtual

called when one or more specified contacts is removed

Implements repro::RegistrarHandler.

Definition at line 25 of file MessageSilo.hxx.

◆ onRemoveAll()

virtual bool repro::MessageSilo::onRemoveAll ( resip::ServerRegistrationHandle  ,
const resip::SipMessage &  reg 
)
inlinevirtual

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

Implements repro::RegistrarHandler.

Definition at line 26 of file MessageSilo.hxx.

◆ process()

Processor::processor_action_t MessageSilo::process ( RequestContext &  context)
virtual

Implements repro::AsyncProcessor.

Definition at line 130 of file MessageSilo.cxx.


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