reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
UserAgentClientPublication.hxx
Go to the documentation of this file.
1#if !defined(UserAgentClientPublication_hxx)
2#define UserAgentClientPublication_hxx
3
8
9#include "UserAgent.hxx"
10
11namespace resip
12{
13class DialogUsageManager;
14class SipMessage;
15}
16
17namespace recon
18{
19class UserAgent;
20
27{
28 public:
31
33 virtual void end();
34
35 // ClientPublicationHandler ///////////////////////////////////////////////////
38 virtual void onSuccess(resip::ClientPublicationHandle handle, const resip::SipMessage& status);
39
40 //publication was successfully removed
41 virtual void onRemove(resip::ClientPublicationHandle handle, const resip::SipMessage& status);
42
43 //call on failure. The usage will be destroyed. Note that this may not
44 //necessarily be 4xx...a malformed 200, etc. could also reach here.
45 virtual void onFailure(resip::ClientPublicationHandle handle, const resip::SipMessage& status);
46
50
51 // ?dcm? -- when should this be called
52 virtual void onStaleUpdate(resip::ClientPublicationHandle handle, const resip::SipMessage& status);
53
54
55 private:
56 UserAgent &mUserAgent;
57 PublicationHandle mPublicationHandle;
58 bool mEnded;
59};
60
61}
62
63#endif
64
65
66/* ====================================================================
67
68 Copyright (c) 2007-2008, Plantronics, Inc.
69 Copyright (C) 2016, Mateus Bellomo (mateusbellomo AT gmail DOT com) https://mateusbellomo.wordpress.com/
70 All rights reserved.
71
72 Redistribution and use in source and binary forms, with or without
73 modification, are permitted provided that the following conditions are
74 met:
75
76 1. Redistributions of source code must retain the above copyright
77 notice, this list of conditions and the following disclaimer.
78
79 2. Redistributions in binary form must reproduce the above copyright
80 notice, this list of conditions and the following disclaimer in the
81 documentation and/or other materials provided with the distribution.
82
83 3. Neither the name of the author(s) nor the names of its contributors
84 may be used to endorse or promote products derived from this
85 software without specific prior written permission.
86
87 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
88 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
89 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
90 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
91 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
92 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
93 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
94 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
95 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
96 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
97 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
98
99 ==================================================================== */
This class is used to manage active client publications.
virtual void onSuccess(resip::ClientPublicationHandle handle, const resip::SipMessage &status)
Called when the publication succeeds or each time it is sucessfully refreshed.
virtual void onRemove(resip::ClientPublicationHandle handle, const resip::SipMessage &status)
virtual void onStaleUpdate(resip::ClientPublicationHandle handle, const resip::SipMessage &status)
virtual int onRequestRetry(resip::ClientPublicationHandle handle, int retrySeconds, const resip::SipMessage &status)
call on Retry-After failure.
virtual void onFailure(resip::ClientPublicationHandle handle, const resip::SipMessage &status)
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.
unsigned int PublicationHandle
dcm! – add UnusedChecking(_enum) below;
void list()
Definition userAdmin.cxx:66