reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
UserAgentRegistration.hxx
Go to the documentation of this file.
1#if !defined(UserAgentRegistration_hxx)
2#define UserAgentRegistration_hxx
3
8
9#include "UserAgent.hxx"
10
11namespace resip
12{
13class DialogUsageManager;
14class SipMessage;
15}
16
17namespace recon
18{
19class UserAgent;
20
28{
29 public:
31 virtual ~UserAgentRegistration();
32
34 virtual void end();
35 virtual bool forceRefresh();
36
39
40 // Registration Handler ////////////////////////////////////////////////////////
45
46 private:
47 UserAgent &mUserAgent;
48 ConversationProfileHandle mConversationProfileHandle;
49 bool mEnded;
50 resip::ClientRegistrationHandle mRegistrationHandle;
51 resip::Tuple mLastServerTuple;
52};
53
54}
55
56#endif
57
58
59/* ====================================================================
60
61 Copyright (c) 2007-2008, Plantronics, Inc.
62 Copyright (c) 2016, SIP Spectrum, Inc.
63
64 All rights reserved.
65
66 Redistribution and use in source and binary forms, with or without
67 modification, are permitted provided that the following conditions are
68 met:
69
70 1. Redistributions of source code must retain the above copyright
71 notice, this list of conditions and the following disclaimer.
72
73 2. Redistributions in binary form must reproduce the above copyright
74 notice, this list of conditions and the following disclaimer in the
75 documentation and/or other materials provided with the distribution.
76
77 3. Neither the name of Plantronics nor the names of its contributors
78 may be used to endorse or promote products derived from this
79 software without specific prior written permission.
80
81 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
82 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
83 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
84 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
85 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
86 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
87 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
88 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
89 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
90 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
91 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
92
93 ==================================================================== */
This class is used to manage active SIP registrations.
virtual int onRequestRetry(resip::ClientRegistrationHandle h, int retryMinimum, const resip::SipMessage &msg)
const resip::Tuple & getLastServerTuple()
virtual void onRemoved(resip::ClientRegistrationHandle h, const resip::SipMessage &response)
virtual void onFailure(resip::ClientRegistrationHandle h, const resip::SipMessage &response)
virtual void onSuccess(resip::ClientRegistrationHandle h, const resip::SipMessage &response)
const resip::NameAddrs & getContactAddresses()
ConversationProfileHandle getConversationProfileHandle()
This class is one of two main classes of concern to an application using the UserAgent library.
Definition UserAgent.hxx:56
Represents a SIP message.
Represents a network address.
Definition Tuple.hxx:59
unsigned int ConversationProfileHandle
dcm! – add UnusedChecking(_enum) below;
void list()
Definition userAdmin.cxx:66