summaryrefslogtreecommitdiff
path: root/rtpSessionTable.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-03-13 17:32:00 +0000
committerChristian Pointner <equinox@anytun.org>2008-03-13 17:32:00 +0000
commitce8ae5556b90de67f23ddb974da76bee3e43b6fd (patch)
tree8d0c3582abadc4fe181336edf40a03b251dd424f /rtpSessionTable.h
parentrenamed cpp files (diff)
anyrtpproxy can handled most commands
TODO: start threads for relaying
Diffstat (limited to 'rtpSessionTable.h')
-rw-r--r--rtpSessionTable.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/rtpSessionTable.h b/rtpSessionTable.h
index 5b14082..d4140ac 100644
--- a/rtpSessionTable.h
+++ b/rtpSessionTable.h
@@ -36,7 +36,7 @@
#include "threadUtils.hpp"
#include "datatypes.h"
#include "rtpSession.h"
-typedef std::map<std::string,RtpSession> RtpSessionMap;
+typedef std::map<std::string,RtpSession*> RtpSessionMap;
class RtpSessionTable
{
@@ -44,16 +44,13 @@ public:
static RtpSessionTable& instance();
RtpSessionTable();
~RtpSessionTable();
- void addSession(const std::string & , const RtpSession &);
- void delSession(const std::string & );
- //u_int16_t getRoute(const NetworkAddress &);
+ void addSession(const std::string & call_id, RtpSession* ses);
+ void delSession(const std::string & call_id);
bool empty();
void clear();
::Mutex& getMutex();
- RtpSession& getOrNewSessionUnlocked(const std::string & addr);
- uint16_t getCountUnlocked();
- RtpSessionMap::iterator getBeginUnlocked();
- RtpSessionMap::iterator getEndUnlocked();
+ RtpSession& getOrNewSessionUnlocked(const std::string & call_id);
+ RtpSession& getSession(const std::string & call_id);
private:
static ::Mutex instMutex;