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