#include <SubscriptionHandler.hxx>
|
| virtual | ~ServerSubscriptionHandler () |
| |
| virtual void | onNewSubscription (ServerSubscriptionHandle, const SipMessage &sub)=0 |
| |
| virtual void | onNewSubscriptionFromRefer (ServerSubscriptionHandle, const SipMessage &sub) |
| |
| virtual void | onRefresh (ServerSubscriptionHandle, const SipMessage &sub) |
| |
| virtual void | onPublished (ServerSubscriptionHandle associated, ServerPublicationHandle publication, const Contents *contents, const SecurityAttributes *attrs) |
| |
| virtual void | onNotifyAccepted (ServerSubscriptionHandle, const SipMessage &msg) |
| |
| virtual void | onNotifyRejected (ServerSubscriptionHandle, const SipMessage &msg) |
| |
| virtual void | onTerminated (ServerSubscriptionHandle)=0 |
| |
| virtual void | onReadyToSend (ServerSubscriptionHandle, SipMessage &msg) |
| |
| virtual void | onError (ServerSubscriptionHandle, const SipMessage &msg) |
| |
| virtual void | onExpiredByClient (ServerSubscriptionHandle, const SipMessage &sub, SipMessage ¬ify) |
| |
| virtual void | onExpired (ServerSubscriptionHandle, SipMessage ¬ify) |
| |
| virtual void | onFlowTerminated (ServerSubscriptionHandle) |
| | Called when a TCP or TLS flow to the server has terminated.
|
| |
| virtual void | getExpires (const SipMessage &msg, uint32_t &expires, int &errorResponseCode) |
| | Default behavior is to use the expires value in the SipMessage, if it exists.
|
| |
| virtual bool | hasDefaultExpires () const |
| | dcm! – a bit clunky, but really want these objects to not have state
|
| |
| virtual uint32_t | getDefaultExpires () const |
| |
| virtual bool | hasMinExpires () const |
| |
| virtual uint32_t | getMinExpires () const |
| |
| virtual bool | hasMaxExpires () const |
| |
| virtual uint32_t | getMaxExpires () const |
| |
| const Mimes & | getSupportedMimeTypes () const |
| |
Definition at line 43 of file SubscriptionHandler.hxx.
◆ ~ServerSubscriptionHandler()
| virtual resip::ServerSubscriptionHandler::~ServerSubscriptionHandler |
( |
| ) |
|
|
inlinevirtual |
◆ getDefaultExpires()
| uint32_t ServerSubscriptionHandler::getDefaultExpires |
( |
| ) |
const |
|
virtual |
◆ getExpires()
| void ServerSubscriptionHandler::getExpires |
( |
const SipMessage & |
msg, |
|
|
uint32_t & |
expires, |
|
|
int & |
errorResponseCode |
|
) |
| |
|
virtual |
Default behavior is to use the expires value in the SipMessage, if it exists.
Then verify the expires >= Min and <= Max (if set). If an expires value does not exists, use getDefaultExpires(). If hasDefaultExpires() is false, then reject the message with a 400. Set errorReturnCode to an error code >= 400 to reject this subscription.
Definition at line 92 of file SubscriptionHandler.cxx.
◆ getMaxExpires()
| uint32_t ServerSubscriptionHandler::getMaxExpires |
( |
| ) |
const |
|
virtual |
◆ getMinExpires()
| uint32_t ServerSubscriptionHandler::getMinExpires |
( |
| ) |
const |
|
virtual |
◆ getSupportedMimeTypes()
| const Mimes & ServerSubscriptionHandler::getSupportedMimeTypes |
( |
| ) |
const |
◆ hasDefaultExpires()
| bool ServerSubscriptionHandler::hasDefaultExpires |
( |
| ) |
const |
|
virtual |
◆ hasMaxExpires()
| bool ServerSubscriptionHandler::hasMaxExpires |
( |
| ) |
const |
|
virtual |
◆ hasMinExpires()
| bool ServerSubscriptionHandler::hasMinExpires |
( |
| ) |
const |
|
virtual |
◆ onError()
◆ onExpired()
◆ onExpiredByClient()
◆ onFlowTerminated()
Called when a TCP or TLS flow to the server has terminated.
This can be caused by socket errors, or missing CRLF keep alives pong responses from the server. supports RFC5626 (outbound). Default implementation is to tear down the subscription
Definition at line 158 of file SubscriptionHandler.cxx.
◆ onNewSubscription()
◆ onNewSubscriptionFromRefer()
◆ onNotifyAccepted()
◆ onNotifyRejected()
◆ onPublished()
◆ onReadyToSend()
◆ onRefresh()
◆ onTerminated()
The documentation for this class was generated from the following files: