|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
dcm! – shutdown/deletion API – end? More...
#include <ClientRegistration.hxx>
Public Member Functions | |
| ClientRegistration (DialogUsageManager &dum, DialogSet &dialog, std::shared_ptr< SipMessage > req) | |
| ClientRegistration (const ClientRegistration &)=delete | |
| ClientRegistration (ClientRegistration &&)=delete | |
| ClientRegistration & | operator= (const ClientRegistration &)=delete |
| ClientRegistration & | operator= (ClientRegistration &&)=delete |
| ClientRegistrationHandle | getHandle () |
| void | addBinding (const NameAddr &contact) |
| Adds a registration binding, using the registration from the UserProfile. | |
| void | addBinding (const NameAddr &contact, uint32_t registrationTime) |
| Adds a registration binding, using the specified registration time. | |
| void | removeBinding (const NameAddr &contact) |
| Removes one particular binding. | |
| void | removeAll (bool stopRegisteringWhenDone=false) |
| Removes all bindings associated with the AOR - even those that may have been by a another UA. | |
| void | removeMyBindings (bool stopRegisteringWhenDone=false) |
| Removes all bindings added by addBinding. | |
| void | requestRefresh (uint32_t expires=0) |
| Request a manual refresh of the registration. | |
| void | stopRegistering () |
| kills the usgage, does not unregister, call removeMyBindings to unregister | |
| const NameAddrs & | myContacts () const noexcept |
| returns a list of contacts added by addBinding | |
| const NameAddrs & | allContacts () const noexcept |
| returns a list of all contacts for this AOR - may include those added by other UA's | |
| uint32_t | whenExpires () const |
| returns the number of seconds until the registration expires - relative, returns 0 if already expired | |
| void | end () override |
| Calls removeMyBindings and ends usage when complete. | |
| bool | isRequestPending () const noexcept |
| Returns true if a REGISTER request is currently pending and we are waiting for the SIP Response. | |
| void | removeMyBindingsCommand (bool stopRegisteringWhenDone=false) |
| Provide asynchronous method access by using command. | |
| virtual void | endCommand () |
| void | dispatch (const SipMessage &msg) override |
| void | dispatch (const DumTimeout &timer) override |
| EncodeStream & | dump (EncodeStream &strm) const override |
Public Member Functions inherited from resip::NonDialogUsage | |
| AppDialogSetHandle | getAppDialogSet () const |
| std::shared_ptr< UserProfile > | getUserProfile () const noexcept |
| virtual void | send (std::shared_ptr< SipMessage > msg) |
| virtual void | sendCommand (std::shared_ptr< SipMessage > msg) |
Public Member Functions inherited from resip::BaseUsage | |
| virtual void | postDum (Message *messageForDum) |
| posts a message on dum | |
Public Member Functions inherited from resip::Handled | |
| Handled (HandleManager &ham) | |
| virtual | ~Handled () |
Static Public Member Functions | |
| static void | tagContact (NameAddr &contact, DialogUsageManager &dum, const std::shared_ptr< UserProfile > &userProfile) |
Protected Member Functions | |
| virtual | ~ClientRegistration () |
Protected Member Functions inherited from resip::NonDialogUsage | |
| NonDialogUsage (DialogUsageManager &dum, DialogSet &dialogSet) | |
| virtual | ~NonDialogUsage () |
| void | applyLocalContact (SipMessage &response, const SipMessage &request) const |
Protected Member Functions inherited from resip::BaseUsage | |
| BaseUsage (DialogUsageManager &dum) | |
| virtual | ~BaseUsage () |
| BaseUsageHandle | getBaseHandle () const |
Friends | |
| class | DialogSet |
Additional Inherited Members | |
Public Types inherited from resip::Handled | |
| enum | { npos = 0 } |
| typedef unsigned long | Id |
Protected Attributes inherited from resip::NonDialogUsage | |
| DialogSet & | mDialogSet |
Protected Attributes inherited from resip::BaseUsage | |
| DialogUsageManager & | mDum |
Protected Attributes inherited from resip::Handled | |
| HandleManager & | mHam |
| Handled::Id | mId |
dcm! – shutdown/deletion API – end?
Definition at line 16 of file ClientRegistration.hxx.
| ClientRegistration::ClientRegistration | ( | DialogUsageManager & | dum, |
| DialogSet & | dialog, | ||
| std::shared_ptr< SipMessage > | req | ||
| ) |
Definition at line 34 of file ClientRegistration.cxx.
|
delete |
|
delete |
|
protectedvirtual |
Definition at line 71 of file ClientRegistration.cxx.
| void ClientRegistration::addBinding | ( | const NameAddr & | contact | ) |
Adds a registration binding, using the registration from the UserProfile.
Definition at line 81 of file ClientRegistration.cxx.
Adds a registration binding, using the specified registration time.
Definition at line 117 of file ClientRegistration.cxx.
|
noexcept |
returns a list of all contacts for this AOR - may include those added by other UA's
Definition at line 334 of file ClientRegistration.cxx.
|
overridevirtual |
Implements resip::BaseUsage.
Definition at line 968 of file ClientRegistration.cxx.
|
overridevirtual |
Implements resip::BaseUsage.
Definition at line 401 of file ClientRegistration.cxx.
|
overridevirtual |
Implements resip::BaseUsage.
Definition at line 394 of file ClientRegistration.cxx.
|
overridevirtual |
Calls removeMyBindings and ends usage when complete.
Implements resip::BaseUsage.
Definition at line 354 of file ClientRegistration.cxx.
|
virtual |
Definition at line 388 of file ClientRegistration.cxx.
| ClientRegistrationHandle ClientRegistration::getHandle | ( | ) |
Definition at line 29 of file ClientRegistration.cxx.
|
inlinenoexcept |
Returns true if a REGISTER request is currently pending and we are waiting for the SIP Response.
Definition at line 68 of file ClientRegistration.hxx.
|
noexcept |
returns a list of contacts added by addBinding
Definition at line 328 of file ClientRegistration.cxx.
|
delete |
|
delete |
| void ClientRegistration::removeAll | ( | bool | stopRegisteringWhenDone = false | ) |
Removes all bindings associated with the AOR - even those that may have been by a another UA.
Note: Set's contact header to '*'. Set flag to true to end the usage when complete.
Definition at line 169 of file ClientRegistration.cxx.
| void ClientRegistration::removeBinding | ( | const NameAddr & | contact | ) |
Removes one particular binding.
Definition at line 136 of file ClientRegistration.cxx.
| void ClientRegistration::removeMyBindings | ( | bool | stopRegisteringWhenDone = false | ) |
Removes all bindings added by addBinding.
Set flag to true to end the usage when complete
Definition at line 197 of file ClientRegistration.cxx.
| void ClientRegistration::removeMyBindingsCommand | ( | bool | stopRegisteringWhenDone = false | ) |
Provide asynchronous method access by using command.
Definition at line 271 of file ClientRegistration.cxx.
| void ClientRegistration::requestRefresh | ( | uint32_t | expires = 0 | ) |
Request a manual refresh of the registration.
If 0 then default to using original expires value (to remove use removeXXX() instead)
Definition at line 284 of file ClientRegistration.cxx.
| void ClientRegistration::stopRegistering | ( | ) |
kills the usgage, does not unregister, call removeMyBindings to unregister
Definition at line 277 of file ClientRegistration.cxx.
|
static |
Definition at line 718 of file ClientRegistration.cxx.
| uint32_t ClientRegistration::whenExpires | ( | ) | const |
returns the number of seconds until the registration expires - relative, returns 0 if already expired
Definition at line 340 of file ClientRegistration.cxx.
|
friend |
Definition at line 109 of file ClientRegistration.hxx.