|
reSIProcate/DialogUsageManager
9694
|
#include <SubscriptionHandler.hxx>

Public Member Functions | |
| virtual | ~ClientSubscriptionHandler () |
| virtual void | onUpdatePending (ClientSubscriptionHandle, const SipMessage ¬ify, bool outOfOrder)=0 |
| virtual void | onUpdateActive (ClientSubscriptionHandle, const SipMessage ¬ify, bool outOfOrder)=0 |
| virtual void | onUpdateExtension (ClientSubscriptionHandle, const SipMessage ¬ify, bool outOfOrder)=0 |
| virtual int | onRequestRetry (ClientSubscriptionHandle, int retrySeconds, const SipMessage ¬ify)=0 |
| virtual void | onTerminated (ClientSubscriptionHandle, const SipMessage *msg)=0 |
| virtual void | onNewSubscription (ClientSubscriptionHandle, const SipMessage ¬ify)=0 |
| virtual void | onReadyToSend (ClientSubscriptionHandle, SipMessage &msg) |
| called to allow app to adorn a message. | |
| virtual void | onNotifyNotReceived (ClientSubscriptionHandle) |
| virtual void | onFlowTerminated (ClientSubscriptionHandle) |
| Called when a TCP or TLS flow to the server has terminated. | |
Definition at line 13 of file SubscriptionHandler.hxx.
| virtual resip::ClientSubscriptionHandler::~ClientSubscriptionHandler | ( | ) | [inline, virtual] |
Definition at line 16 of file SubscriptionHandler.hxx.
{ }
| void ClientSubscriptionHandler::onFlowTerminated | ( | ClientSubscriptionHandle | h | ) | [virtual] |
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 re-form the subscription using a new flow
Definition at line 27 of file SubscriptionHandler.cxx.
References InfoLog.
Referenced by resip::ClientSubscription::flowTerminated().
{
// re-Subscribe
InfoLog(<< "ClientSubscriptionHandler::onFlowTerminated");
h->reSubscribe();
}
| virtual void resip::ClientSubscriptionHandler::onNewSubscription | ( | ClientSubscriptionHandle | , |
| const SipMessage & | notify | ||
| ) | [pure virtual] |
Implemented in resip::UserAgent, resip::BasicClientUserAgent, and RegEventClient.
| void ClientSubscriptionHandler::onNotifyNotReceived | ( | ClientSubscriptionHandle | h | ) | [virtual] |
Reimplemented in resip::BasicClientUserAgent.
Definition at line 20 of file SubscriptionHandler.cxx.
Referenced by resip::ClientSubscription::dispatch().
{
// By default, tear down the sub.
h->end();
}
| void ClientSubscriptionHandler::onReadyToSend | ( | ClientSubscriptionHandle | h, |
| SipMessage & | msg | ||
| ) | [virtual] |
called to allow app to adorn a message.
Definition at line 14 of file SubscriptionHandler.cxx.
Referenced by resip::ClientSubscription::onReadyToSend().
{
// default is to do nothing. this is for adornment
}
| virtual int resip::ClientSubscriptionHandler::onRequestRetry | ( | ClientSubscriptionHandle | , |
| int | retrySeconds, | ||
| const SipMessage & | notify | ||
| ) | [pure virtual] |
Implemented in resip::UserAgent, resip::BasicClientUserAgent, and RegEventClient.
Referenced by resip::ClientSubscription::processResponse().
| virtual void resip::ClientSubscriptionHandler::onTerminated | ( | ClientSubscriptionHandle | , |
| const SipMessage * | msg | ||
| ) | [pure virtual] |
Implemented in resip::UserAgent, resip::BasicClientUserAgent, and RegEventClient.
Referenced by resip::ClientSubscription::dialogDestroyed(), resip::ClientSubscription::dispatch(), resip::ClientSubscription::processNextNotify(), resip::ClientSubscription::processResponse(), and resip::ClientSubscription::rejectUpdate().
| virtual void resip::ClientSubscriptionHandler::onUpdateActive | ( | ClientSubscriptionHandle | , |
| const SipMessage & | notify, | ||
| bool | outOfOrder | ||
| ) | [pure virtual] |
Implemented in resip::UserAgent, resip::BasicClientUserAgent, and RegEventClient.
Referenced by resip::ClientSubscription::processNextNotify().
| virtual void resip::ClientSubscriptionHandler::onUpdateExtension | ( | ClientSubscriptionHandle | , |
| const SipMessage & | notify, | ||
| bool | outOfOrder | ||
| ) | [pure virtual] |
Implemented in resip::UserAgent, resip::BasicClientUserAgent, and RegEventClient.
Referenced by resip::ClientSubscription::processNextNotify().
| virtual void resip::ClientSubscriptionHandler::onUpdatePending | ( | ClientSubscriptionHandle | , |
| const SipMessage & | notify, | ||
| bool | outOfOrder | ||
| ) | [pure virtual] |
Implemented in resip::UserAgent, resip::BasicClientUserAgent, and RegEventClient.
Referenced by resip::ClientSubscription::processNextNotify().
1.7.5.1