|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
Public Member Functions | |
| MyUserAgent (Server &server, std::shared_ptr< UserAgentMasterProfile > profile, resip::AfterSocketCreationFuncPtr socketFunc) | |
| void | onApplicationTimer (unsigned int id, std::chrono::duration< double > duration, unsigned int seq) override |
| Callback used when an application timer expires. | |
| void | onSubscriptionTerminated (SubscriptionHandle handle, unsigned int statusCode) override |
| Callback used when a subscription is terminated. | |
| void | onSubscriptionNotify (SubscriptionHandle handle, const Data ¬ifyData) override |
| Callback used when a subscription has received an event notification from the server. | |
Public Member Functions inherited from recon::UserAgent | |
| UserAgent (ConversationManager *conversationManager, std::shared_ptr< UserAgentMasterProfile > masterProfile, resip::AfterSocketCreationFuncPtr socketFunc=0) | |
| Constructor. | |
| virtual | ~UserAgent () |
| void | startup () |
| Starts the SIP stack thread. | |
| virtual void | process (int timeoutMs) |
| This should be called in a loop to give process cycles to the UserAgent. | |
| void | shutdown () |
| Used to initiate a shutdown of the useragent. | |
| void | logDnsCache () |
| Used to initiate a snapshot of the existing DNS entries in the cache to the logging subsystem. | |
| void | clearDnsCache () |
| Used to clear the existing DNS entries in the cache. | |
| ConversationManager * | getConversationManager () |
| Retrieves the ConversationManager passed in the constructor. | |
| ConversationProfileHandle | addConversationProfile (std::shared_ptr< ConversationProfile > conversationProfile, bool defaultOutgoing=true) |
| Adds a Conversation Profile to be managed, by the user agent. | |
| void | setDefaultOutgoingConversationProfile (ConversationProfileHandle handle) |
| Sets an existing Conversation Profile to the default profile to use for outbound calls. | |
| void | destroyConversationProfile (ConversationProfileHandle handle) |
| Destroys an existing Conversation Profile. | |
| virtual void | startApplicationTimer (unsigned int timerId, std::chrono::duration< double > duration, unsigned int seqNumber) |
| Used by an application to start a timer that is managed by the useragent. | |
| SubscriptionHandle | createSubscription (const resip::Data &eventType, const resip::NameAddr &target, unsigned int subscriptionTime, const resip::Mime &mimeType) |
| Requests that the user agent create and manage an event subscription. | |
| void | destroySubscription (SubscriptionHandle handle) |
| Destroys an existing subscriptions. | |
| PublicationHandle | createPublication (const resip::Data &eventType, const resip::NameAddr &target, const resip::Data &status, unsigned int publicationTime, const resip::Mime &mimeType) |
| void | destroyPublication (PublicationHandle handle) |
| const char * | sendMessage (const resip::NameAddr &destination, const resip::Data &msg, const resip::Mime &mimeType) |
| Used to send a MESSAGE SIP message. | |
| std::shared_ptr< UserAgentMasterProfile > | getUserAgentMasterProfile () const noexcept |
Public Member Functions inherited from resip::ClientRegistrationHandler | |
| virtual | ~ClientRegistrationHandler () |
| virtual void | onFlowTerminated (ClientRegistrationHandle) |
| Called when a TCP or TLS flow to the server has terminated. | |
| virtual bool | onRefreshRequired (ClientRegistrationHandle, const SipMessage &lastRequest) |
| Called before attempting to refresh a registration Return true if the refresh should go ahead or false otherwise Default implementation always returns true. | |
Public Member Functions inherited from resip::ClientSubscriptionHandler | |
| virtual | ~ClientSubscriptionHandler () |
| 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. | |
Public Member Functions inherited from resip::ClientPublicationHandler | |
| virtual | ~ClientPublicationHandler () |
| virtual void | onStaleUpdate (ClientPublicationHandle, const SipMessage &) |
Public Member Functions inherited from resip::DumShutdownHandler | |
| virtual | ~DumShutdownHandler () |
Public Member Functions inherited from resip::Postable | |
| virtual | ~Postable () |
Definition at line 59 of file Server.cxx.
|
inline |
Definition at line 62 of file Server.cxx.
|
inlineoverridevirtual |
Callback used when an application timer expires.
| timerId | Id representing the timers purpose |
| duration | the duration of the timer in ms |
| seqNumber | Can be used by the application to differentiate "active" from "non-active" timers, since timers cannot be stopped |
Reimplemented from recon::UserAgent.
Definition at line 66 of file Server.cxx.
|
inlineoverridevirtual |
Callback used when a subscription has received an event notification from the server.
| handle | Subscription handle that event applies to |
| notifyData | Data representation of the event received |
Reimplemented from recon::UserAgent.
Definition at line 86 of file Server.cxx.
|
inlineoverridevirtual |
Callback used when a subscription is terminated.
| handle | Subscription handle that terminated |
| statusCode | The status code that caused termination. If application terminated, then statusCode will be 0. |
Reimplemented from recon::UserAgent.
Definition at line 81 of file Server.cxx.