1#if !defined(RESIP_REGISTRATIONHANDLER_HXX)
2#define RESIP_REGISTRATIONHANDLER_HXX
76 const std::shared_ptr<MasterProfile>& masterProfile,
87 const std::shared_ptr<MasterProfile>& masterProfile,
111 std::unique_ptr<ContactPtrList> modifiedContactList,
112 std::unique_ptr<ContactRecordTransactionLog> transactionLog)
121 std::unique_ptr<resip::ContactPtrList> contacts)
virtual void onFailure(ClientRegistrationHandle, const SipMessage &response)=0
Called if registration fails, usage will be destroyed (unless a Registration retry interval is enable...
virtual ~ClientRegistrationHandler()
virtual void onFlowTerminated(ClientRegistrationHandle)
Called when a TCP or TLS flow to the server has terminated.
virtual int onRequestRetry(ClientRegistrationHandle, int retrySeconds, const SipMessage &response)=0
call on Retry-After failure.
virtual bool onRefreshRequired(ClientRegistrationHandle, const SipMessage &lastRequest)
Called before attempting to refresh a registration Return true if the refresh should go ahead or fals...
virtual void onSuccess(ClientRegistrationHandle, const SipMessage &response)=0
Called when registration succeeds or each time it is successfully refreshed (manual refreshes only).
virtual void onRemoved(ClientRegistrationHandle, const SipMessage &response)=0
Represents the "name-addr" and the "addr-spec" elements in the RFC 3261 grammar.
virtual void asyncGetContacts(ServerRegistrationHandle, const Uri &aor)
Called when a REGISTER is first received to retrieve the current list.
virtual void onRefresh(ServerRegistrationHandle, const SipMessage ®)=0
Called when registration is refreshed.
virtual void onRemoveAll(ServerRegistrationHandle, const SipMessage ®)=0
Called when all the contacts are removed using "Contact: *".
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 be...
virtual void onAdd(ServerRegistrationHandle, const SipMessage ®)=0
Called when one or more contacts are added.
virtual void onQuery(ServerRegistrationHandle, const SipMessage ®)=0
Called when a client queries for the list of current registrations.
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 exp...
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.
virtual void onRemove(ServerRegistrationHandle, const SipMessage ®)=0
called when one or more specified contacts is removed
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" he...
virtual ~ServerRegistrationHandler()=default
virtual bool asyncProcessing(void) const
If true, the registration processing will use the async* functions here and will not use the Registra...
Represents a SIP message.
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
dcm! – add UnusedChecking(_enum) below;