reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
MediaEvent.hxx
Go to the documentation of this file.
1
#if !defined(MediaEvent_hxx)
2
#define MediaEvent_hxx
3
4
#include <
resip/dum/DumCommand.hxx
>
5
#include "
HandleTypes.hxx
"
6
7
namespace
recon
8
{
9
10
class
ConversationManager;
11
class
Message;
12
19
class
MediaEvent
:
public
resip::DumCommand
20
{
21
public
:
22
typedef
enum
23
{
24
RESOURCE_DONE
,
25
RESOURCE_FAILED
,
26
VOICE_STARTED
,
27
VOICE_STOPPED
28
}
MediaEventType
;
29
30
typedef
enum
31
{
32
DIRECTION_IN
,
33
DIRECTION_OUT
34
}
MediaDirection
;
35
36
MediaEvent
(
ConversationManager
&
conversationManager
,
ParticipantHandle
partHandle
,
MediaEventType
eventType
,
MediaDirection
direction
);
37
virtual
void
executeCommand
();
38
39
Message
*
clone
()
const
;
40
EncodeStream
&
encode
(
EncodeStream
&
strm
)
const
;
41
EncodeStream
&
encodeBrief
(
EncodeStream
&
strm
)
const
;
42
43
private
:
44
ConversationManager
& mConversationManager;
45
ParticipantHandle
mParticipantHandle;
46
MediaEventType
mEventType;
47
MediaDirection
mDirection;
48
};
49
50
51
}
52
53
#endif
54
55
56
/* ====================================================================
57
58
Copyright (c) 2021, SIP Spectrum, Inc. www.sipspectrum.com
59
Copyright (c) 2021, Daniel Pocock https://danielpocock.com
60
Copyright (c) 2007-2008, Plantronics, Inc.
61
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 are
65
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 the
72
documentation and/or other materials provided with the distribution.
73
74
3. Neither the name of Plantronics nor the names of its contributors
75
may be used to endorse or promote products derived from this
76
software without specific prior written permission.
77
78
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
79
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
80
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
81
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
82
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
83
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
84
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
85
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
86
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
87
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
88
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
89
90
==================================================================== */
DumCommand.hxx
HandleTypes.hxx
recon::ConversationManager
This class is one of two main classes of concern to an application using the UserAgent library.
Definition
ConversationManager.hxx:71
recon::MediaEvent
This class represents an event that happens to a media participant.
Definition
MediaEvent.hxx:20
recon::MediaEvent::encode
EncodeStream & encode(EncodeStream &strm) const
output the entire message to stream
Definition
MediaEvent.cxx:36
recon::MediaEvent::clone
Message * clone() const
Definition
MediaEvent.cxx:29
recon::MediaEvent::MediaEventType
MediaEventType
Definition
MediaEvent.hxx:23
recon::MediaEvent::RESOURCE_DONE
@ RESOURCE_DONE
Definition
MediaEvent.hxx:24
recon::MediaEvent::VOICE_STARTED
@ VOICE_STARTED
Definition
MediaEvent.hxx:26
recon::MediaEvent::VOICE_STOPPED
@ VOICE_STOPPED
Definition
MediaEvent.hxx:27
recon::MediaEvent::RESOURCE_FAILED
@ RESOURCE_FAILED
Definition
MediaEvent.hxx:25
recon::MediaEvent::executeCommand
virtual void executeCommand()
Definition
MediaEvent.cxx:23
recon::MediaEvent::encodeBrief
EncodeStream & encodeBrief(EncodeStream &strm) const
output a brief description to stream
Definition
MediaEvent.cxx:43
recon::MediaEvent::MediaDirection
MediaDirection
Definition
MediaEvent.hxx:31
recon::MediaEvent::DIRECTION_OUT
@ DIRECTION_OUT
Definition
MediaEvent.hxx:33
recon::MediaEvent::DIRECTION_IN
@ DIRECTION_IN
Definition
MediaEvent.hxx:32
resip::DumCommand
Definition
DumCommand.hxx:10
resip::Message::Message
Message()
Definition
Message.cxx:12
recon
Definition
BridgeMixer.hxx:10
recon::ParticipantHandle
unsigned int ParticipantHandle
Definition
HandleTypes.hxx:8
EncodeStream
#define EncodeStream
Definition
resipfaststreams.hxx:461
list
void list()
Definition
userAdmin.cxx:66
resip
recon
MediaEvent.hxx
Generated by
1.9.8