reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
ParkOrbit.hxx
Go to the documentation of this file.
1#if !defined(ParkOrbit_hxx)
2#define ParkOrbit_hxx
3
4#include <deque>
5#include <resip/stack/Uri.hxx>
6#include "../HandleTypes.hxx"
7
8namespace mohparkserver
9{
10class Server;
11
22
24{
25public:
26 ParkOrbit(Server& server, unsigned long orbit, unsigned long maxParkTime, const resip::Uri& musicFilename);
27 virtual ~ParkOrbit();
28
31
33 unsigned long getOrbit() { return mOrbit; }
34 unsigned long getNumParticipants() { return (unsigned long)mParticipants.size(); }
35 recon::ConversationHandle getConversationHandle() { return mConversationHandle; }
36
38
39private:
40 friend class ParkManager;
41 Server& mServer;
42 unsigned long mOrbit;
43 unsigned long mMaxParkTime;
44 recon::ConversationHandle mConversationHandle;
45 typedef std::deque<ParticipantOrbitInfo*> ParticipantQueue;
46 ParticipantQueue mParticipants;
47};
48
49}
50
51#endif
52
53/* ====================================================================
54
55 Copyright (c) 2011, SIP Spectrum, Inc.
56 All rights reserved.
57
58 Redistribution and use in source and binary forms, with or without
59 modification, are permitted provided that the following conditions are
60 met:
61
62 1. Redistributions of source code must retain the above copyright
63 notice, this list of conditions and the following disclaimer.
64
65 2. Redistributions in binary form must reproduce the above copyright
66 notice, this list of conditions and the following disclaimer in the
67 documentation and/or other materials provided with the distribution.
68
69 3. Neither the name of SIP Spectrum nor the names of its contributors
70 may be used to endorse or promote products derived from this
71 software without specific prior written permission.
72
73 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
74 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
75 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
76 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
77 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
78 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
79 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
80 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
81 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
82 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
83 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
84
85 ==================================================================== */
86
bool onMaxParkTimeout(recon::ParticipantHandle participantHandle)
unsigned long getNumParticipants()
Definition ParkOrbit.hxx:34
bool removeParticipant(recon::ParticipantHandle participantHandle)
Definition ParkOrbit.cxx:68
bool addParticipant(recon::ParticipantHandle participantHandle, const resip::Uri &parkedUri, const resip::Uri &parkerUri)
Definition ParkOrbit.cxx:42
recon::ParticipantHandle getNextQueuedParticipant()
Definition ParkOrbit.cxx:85
recon::ConversationHandle getConversationHandle()
Definition ParkOrbit.hxx:35
unsigned long getOrbit()
Definition ParkOrbit.hxx:33
recon::ParticipantHandle mParticipantHandle
Definition ParkOrbit.hxx:17
ParticipantOrbitInfo(recon::ParticipantHandle participantHandle, const resip::Uri &parkedUri, const resip::Uri &parkerUri)
Definition ParkOrbit.hxx:15
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
Definition Uri.hxx:22
unsigned int ConversationHandle
unsigned int ParticipantHandle
unsigned __int64 uint64_t
Definition stdint.h:95
void list()
Definition userAdmin.cxx:66