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

#include <RegistrationHandler.hxx>

Inheritance diagram for resip::ClientRegistrationHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~ClientRegistrationHandler ()
virtual void onSuccess (ClientRegistrationHandle, const SipMessage &response)=0
 Called when registraion succeeds or each time it is sucessfully refreshed.
virtual void onRemoved (ClientRegistrationHandle, const SipMessage &response)=0
virtual int onRequestRetry (ClientRegistrationHandle, int retrySeconds, const SipMessage &response)=0
 call on Retry-After failure.
virtual void onFailure (ClientRegistrationHandle, const SipMessage &response)=0
 Called if registration fails, usage will be destroyed (unless a Registration retry interval is enabled in the Profile)
virtual void onFlowTerminated (ClientRegistrationHandle)
 Called when a TCP or TLS flow to the server has terminated.

Detailed Description

Definition at line 15 of file RegistrationHandler.hxx.


Constructor & Destructor Documentation

virtual resip::ClientRegistrationHandler::~ClientRegistrationHandler ( ) [inline, virtual]

Definition at line 18 of file RegistrationHandler.hxx.

{ }

Member Function Documentation

virtual void resip::ClientRegistrationHandler::onFailure ( ClientRegistrationHandle  ,
const SipMessage response 
) [pure virtual]

Called if registration fails, usage will be destroyed (unless a Registration retry interval is enabled in the Profile)

Implemented in TestSMIMEMessageHandler, TestInviteSessionHandler, TestIdentityHandler, RegEventClient, resip::UserAgent, resip::BasicClientUserAgent, ClientHandler, RegListener, RlsRegistrationHandler, and resip::TestClientRegistrationHandler.

Referenced by resip::ClientRegistration::dispatch().

void ClientRegistrationHandler::onFlowTerminated ( ClientRegistrationHandle  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 immediately re-Register in an attempt to form a new flow.

Definition at line 12 of file RegistrationHandler.cxx.

References InfoLog.

Referenced by resip::ClientRegistration::flowTerminated().

{
   InfoLog (<< "ClientRegistrationHandler::onFlowTerminated, refreshing registration to open new flow");
   h->requestRefresh();
}
virtual void resip::ClientRegistrationHandler::onRemoved ( ClientRegistrationHandle  ,
const SipMessage response 
) [pure virtual]
virtual int resip::ClientRegistrationHandler::onRequestRetry ( ClientRegistrationHandle  ,
int  retrySeconds,
const SipMessage response 
) [pure virtual]

call on Retry-After failure.

return values: -1 = fail, 0 = retry immediately, N = retry in N seconds

Implemented in TestSMIMEMessageHandler, TestInviteSessionHandler, TestIdentityHandler, RegEventClient, resip::UserAgent, ClientHandler, resip::BasicClientUserAgent, RegListener, and resip::TestClientRegistrationHandler.

Referenced by resip::ClientRegistration::dispatch().

virtual void resip::ClientRegistrationHandler::onSuccess ( ClientRegistrationHandle  ,
const SipMessage response 
) [pure virtual]

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