reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
MediaStreamEvent.hxx
Go to the documentation of this file.
1#if !defined(MediaStreamEvent_hxx)
2#define MediaStreamEvent_hxx
3
5
8
9namespace recon
10{
11
12class RemoteParticipantDialogSet;
13class Message;
14
22{
23 public:
24
26 {
27 public:
29 virtual ~StreamParams() {};
30 virtual EncodeStream& encode(EncodeStream& strm) const = 0;
31 };
32
34 {
35 public:
37 : mRtpTuple(rtpTuple), mRtcpTuple(rtcpTuple) {};
38 virtual ~ReTurnParams() {};
39 const reTurn::StunTuple& getRtpTuple() { return mRtpTuple; };
40 const reTurn::StunTuple& getRtcpTuple() { return mRtcpTuple; };
43 private:
44 reTurn::StunTuple mRtpTuple;
45 reTurn::StunTuple mRtcpTuple;
46 };
47
49 virtual void executeCommand();
50
51 Message* clone() const;
54
55 private:
56 ConversationManager* mConversationManager;
57 ParticipantHandle mPartHandle;
58 std::shared_ptr<StreamParams> mStreamParams;
59};
60
62{
63 public:
65 virtual void executeCommand();
66
67 Message* clone() const;
70
71 private:
72 ConversationManager* mConversationManager;
73 ParticipantHandle mPartHandle;
74 unsigned int mErrorCode;
75};
76
78
79}
80
81#endif
82
83
84/* ====================================================================
85
86 Copyright (c) 2021-2026, SIP Spectrum, Inc. http://www.sipspectrum.com
87 Copyright (c) 2021, Daniel Pocock https://danielpocock.com
88 Copyright (c) 2007-2008, Plantronics, Inc.
89 All rights reserved.
90
91 Redistribution and use in source and binary forms, with or without
92 modification, are permitted provided that the following conditions are
93 met:
94
95 1. Redistributions of source code must retain the above copyright
96 notice, this list of conditions and the following disclaimer.
97
98 2. Redistributions in binary form must reproduce the above copyright
99 notice, this list of conditions and the following disclaimer in the
100 documentation and/or other materials provided with the distribution.
101
102 3. Neither the name of Plantronics nor the names of its contributors
103 may be used to endorse or promote products derived from this
104 software without specific prior written permission.
105
106 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
107 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
108 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
109 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
110 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
111 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
112 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
113 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
114 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
115 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
116 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
117
118 ==================================================================== */
This class is one of two main classes of concern to an application using the UserAgent library.
EncodeStream & encode(EncodeStream &strm) const
output the entire message to stream
EncodeStream & encodeBrief(EncodeStream &strm) const
output a brief description to stream
EncodeStream & encodeBrief(EncodeStream &strm) const
ReTurnParams(const reTurn::StunTuple &rtpTuple, const reTurn::StunTuple &rtcpTuple)
EncodeStream & encode(EncodeStream &strm) const
virtual EncodeStream & encode(EncodeStream &strm) const =0
This class represents events from the Media stream.
EncodeStream & encodeBrief(EncodeStream &strm) const
output a brief description to stream
EncodeStream & encode(EncodeStream &strm) const
output the entire message to stream
unsigned int ParticipantHandle
EncodeStream & operator<<(EncodeStream &strm, const MediaStreamReadyEvent::StreamParams &params)
#define EncodeStream
void list()
Definition userAdmin.cxx:66