From ce8ae5556b90de67f23ddb974da76bee3e43b6fd Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 13 Mar 2008 17:32:00 +0000 Subject: anyrtpproxy can handled most commands TODO: start threads for relaying --- rtpSessionTable.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'rtpSessionTable.h') 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 RtpSessionMap; +typedef std::map 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; -- cgit v1.2.3