summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/RtpSession.h
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2005-12-14 16:38:53 +0000
committerHenri Herscher <henri@oreka.org>2005-12-14 16:38:53 +0000
commit3cdcd8d2e5bb825d774b461c650cf4af966e06a9 (patch)
treedb180f6abebc55898b996c409ed0c4c7d18e07a8 /orkaudio/audiocaptureplugins/voip/RtpSession.h
parent7e49c9f57ce23cefe98f0655c502277e12e2a8b8 (diff)
Added tracking ID to RTP sessions
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@108 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.h')
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.h b/orkaudio/audiocaptureplugins/voip/RtpSession.h
index 8ea84b7..41a25bd 100644
--- a/orkaudio/audiocaptureplugins/voip/RtpSession.h
+++ b/orkaudio/audiocaptureplugins/voip/RtpSession.h
@@ -74,12 +74,13 @@ public:
static int ProtocolToEnum(CStdString& protocol);
static CStdString ProtocolToString(int protocolEnum);
- RtpSession();
+ RtpSession(CStdString& trackingId);
void Stop();
void Start();
void AddRtpPacket(RtpPacketInfoRef& rtpPacket);
void ReportSipInvite(SipInviteInfoRef& invite);
+ CStdString m_trackingId;
CStdString m_ipAndPort; // IP address and TCP port of one side of the session, serves as a key for session storage and retrieval. Not necessarily the same as the capturePort (capturePort is usually the client (phone) IP+port)
CStdString m_callId;
SipInviteInfoRef m_invite;
@@ -117,7 +118,6 @@ class RtpSessions
{
public:
RtpSessions();
- void Create(CStdString& ipAndPort);
void Stop(RtpSessionRef& session);
void ReportSipInvite(SipInviteInfoRef& invite);
void ReportSipBye(SipByeInfo bye);
@@ -130,6 +130,7 @@ private:
std::map<CStdString, RtpSessionRef> m_byIpAndPort;
std::map<CStdString, RtpSessionRef> m_byCallId;
LoggerPtr m_log;
+ AlphaCounter alphaCounter;
};
typedef ACE_Singleton<RtpSessions, ACE_Thread_Mutex> RtpSessionsSingleton;