reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
DtmfEvent.hxx
Go to the documentation of this file.
1#if !defined(DtmfEvent_hxx)
2#define DtmfEvent_hxx
3
5
6namespace recon
7{
8
9class Message;
10
18{
19 public:
21 virtual void executeCommand();
22
23 Message* clone() const;
26
27 private:
28 ConversationManager& mConversationManager;
29 ParticipantHandle mParticipantHandle;
30 int mDtmfTone;
31 int mDuration;
32 bool mUp;
33};
34
35
36}
37
38#endif
39
40
41/* ====================================================================
42
43 Copyright (c) 2021, SIP Spectrum, Inc.
44 Copyright (c) 2021, Daniel Pocock https://danielpocock.com
45 Copyright (c) 2007-2008, Plantronics, Inc.
46 All rights reserved.
47
48 Redistribution and use in source and binary forms, with or without
49 modification, are permitted provided that the following conditions are
50 met:
51
52 1. Redistributions of source code must retain the above copyright
53 notice, this list of conditions and the following disclaimer.
54
55 2. Redistributions in binary form must reproduce the above copyright
56 notice, this list of conditions and the following disclaimer in the
57 documentation and/or other materials provided with the distribution.
58
59 3. Neither the name of Plantronics nor the names of its contributors
60 may be used to endorse or promote products derived from this
61 software without specific prior written permission.
62
63 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
64 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
65 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
66 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
67 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
68 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
69 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
70 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
71 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
72 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
73 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
74
75 ==================================================================== */
This class is one of two main classes of concern to an application using the UserAgent library.
This class represents the data passed in a DTMF event.
Definition DtmfEvent.hxx:18
EncodeStream & encodeBrief(EncodeStream &strm) const
output a brief description to stream
Definition DtmfEvent.cxx:41
Message * clone() const
Definition DtmfEvent.cxx:27
EncodeStream & encode(EncodeStream &strm) const
output the entire message to stream
Definition DtmfEvent.cxx:34
virtual void executeCommand()
Definition DtmfEvent.cxx:21
unsigned int ParticipantHandle
#define EncodeStream
void list()
Definition userAdmin.cxx:66