reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
MediaEvent.cxx
Go to the documentation of this file.
2#include "MediaEvent.hxx"
3
4#include <rutil/Logger.hxx>
5
6using namespace recon;
7using namespace resip;
8
9#define RESIPROCATE_SUBSYSTEM ReconSubsystem::RECON
10
12 ParticipantHandle partHandle,
13 MediaEventType eventType,
14 MediaDirection direction) :
15 mConversationManager(conversationManager),
16 mParticipantHandle(partHandle),
17 mEventType(eventType),
18 mDirection(direction)
19{
20}
21
22void
24{
25 mConversationManager.notifyMediaEvent(mParticipantHandle, mEventType, mDirection);
26}
27
30{
31 resip_assert(0);
32 return 0;
33}
34
36MediaEvent::encode(EncodeStream& strm) const
37{
38 strm << " MediaEvent: participantHandle=" << mParticipantHandle << ", event=" << mEventType << ", direction=" << (mDirection == DIRECTION_IN ? "IN" : "OUT");
39 return strm;
40}
41
43MediaEvent::encodeBrief(EncodeStream& strm) const
44{
45 return encode(strm);
46}
47
48
49/* ====================================================================
50
51 Copyright (c) 2021, SIP Spectrum, Inc. www.sipspectrum.com
52 Copyright (c) 2021, Daniel Pocock https://danielpocock.com
53 Copyright (c) 2007-2008, Plantronics, Inc.
54 All rights reserved.
55
56 Redistribution and use in source and binary forms, with or without
57 modification, are permitted provided that the following conditions are
58 met:
59
60 1. Redistributions of source code must retain the above copyright
61 notice, this list of conditions and the following disclaimer.
62
63 2. Redistributions in binary form must reproduce the above copyright
64 notice, this list of conditions and the following disclaimer in the
65 documentation and/or other materials provided with the distribution.
66
67 3. Neither the name of Plantronics nor the names of its contributors
68 may be used to endorse or promote products derived from this
69 software without specific prior written permission.
70
71 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
72 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
73 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
74 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
75 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
76 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
77 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
78 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
79 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
80 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
81 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
82
83 ==================================================================== */
#define resip_assert(x)
This file needs to work for both C and C++ code.
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
Message * clone() const
virtual void executeCommand()
EncodeStream & encodeBrief(EncodeStream &strm) const
output a brief description to stream
MediaEvent(ConversationManager &conversationManager, ParticipantHandle partHandle, MediaEventType eventType, MediaDirection direction)
The base-class used for message-passing.
Definition Message.hxx:21
unsigned int ParticipantHandle
dcm! – add UnusedChecking(_enum) below;
#define EncodeStream