reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
ServerPagerMessage.hxx
Go to the documentation of this file.
1#if !defined(RESIP_SERVERPAGERMESSAGE_HXX)
2#define RESIP_SERVERPAGERMESSAGE_HXX
3
6
7#include <memory>
8
9namespace resip
10{
11
13{
14 public:
16
19
22
24
25 std::shared_ptr<SipMessage> accept(int statusCode = 200);
26 std::shared_ptr<SipMessage> reject(int statusCode);
27
28 void end() override;
29
33 void acceptCommand(int statusCode = 200);
34 void rejectCommand(int statusCode);
35 void endCommand();
36
37 void send(std::shared_ptr<SipMessage> msg) override;
38 void dispatch(const SipMessage& msg) override;
39 void dispatch(const DumTimeout& timer) override;
40
41 EncodeStream& dump(EncodeStream& strm) const override;
42
43 protected:
44 virtual ~ServerPagerMessage();
45
46 private:
47 friend class DialogSet;
49
50 SipMessage mRequest;
51 std::shared_ptr<SipMessage> mResponse;
52};
53
54}
55
56#endif
57
58/* ====================================================================
59 * The Vovida Software License, Version 1.0
60 *
61 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
62 *
63 * Redistribution and use in source and binary forms, with or without
64 * modification, are permitted provided that the following conditions
65 * are met:
66 *
67 * 1. Redistributions of source code must retain the above copyright
68 * notice, this list of conditions and the following disclaimer.
69 *
70 * 2. Redistributions in binary form must reproduce the above copyright
71 * notice, this list of conditions and the following disclaimer in
72 * the documentation and/or other materials provided with the
73
74 * distribution.
75 *
76 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
77 * and "Vovida Open Communication Application Library (VOCAL)" must
78 * not be used to endorse or promote products derived from this
79 * software without prior written permission. For written
80 * permission, please contact vocal@vovida.org.
81 *
82 * 4. Products derived from this software may not be called "VOCAL", nor
83 * may "VOCAL" appear in their name, without prior written
84 * permission of Vovida Networks, Inc.
85 *
86 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
87 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
88 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
89 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
90 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
91 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
92 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
93 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
94 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
95 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
96 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
97 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
98 * DAMAGE.
99 *
100 * ====================================================================
101 *
102 * This software consists of voluntary contributions made by Vovida
103 * Networks, Inc. and many individuals on behalf of Vovida Networks,
104 * Inc. For more information on Vovida Networks, Inc., please see
105 * <http://www.vovida.org/>.
106 *
107 */
Handle< ServerPagerMessage > ServerPagerMessageHandle
void send(std::shared_ptr< SipMessage > msg) override
ServerPagerMessageHandle getHandle()
void rejectCommand(int statusCode)
void dispatch(const SipMessage &msg) override
ServerPagerMessage & operator=(ServerPagerMessage &&)=delete
EncodeStream & dump(EncodeStream &strm) const override
ServerPagerMessage(ServerPagerMessage &&)=delete
std::shared_ptr< SipMessage > reject(int statusCode)
void acceptCommand(int statusCode=200)
Provide asynchronous method access by using command.
std::shared_ptr< SipMessage > accept(int statusCode=200)
ServerPagerMessage(const ServerPagerMessage &)=delete
ServerPagerMessage & operator=(const ServerPagerMessage &)=delete
Represents a SIP message.
dcm! – add UnusedChecking(_enum) below;
#define EncodeStream
void list()
Definition userAdmin.cxx:66