summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/SipSession.h
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2005-10-28 16:32:05 +0000
committerHenri Herscher <henri@oreka.org>2005-10-28 16:32:05 +0000
commit0199ebe2c5c0102f54820fbe20af1bf5c15dc9aa (patch)
treeed97ac59fa1a9e3d973238d9a5d6d60a51397361 /orkaudio/audiocaptureplugins/voip/SipSession.h
parent456b60934bea84bca6d9e859172dde0837ac1648 (diff)
SipSession becomes RtpSession
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@22 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/SipSession.h')
-rw-r--r--orkaudio/audiocaptureplugins/voip/SipSession.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/SipSession.h b/orkaudio/audiocaptureplugins/voip/SipSession.h
index 566574e..086c191 100644
--- a/orkaudio/audiocaptureplugins/voip/SipSession.h
+++ b/orkaudio/audiocaptureplugins/voip/SipSession.h
@@ -37,7 +37,7 @@ public:
};
-class SipSession
+class RtpSession
{
public:
#define PROT_RAW_RTP "RawRtp"
@@ -47,7 +47,7 @@ public:
static int ProtocolToEnum(CStdString& protocol);
static CStdString ProtocolToString(int protocolEnum);
- SipSession();
+ RtpSession();
void Stop();
void Start();
void AddRtpPacket(RtpPacketInfoRef& rtpPacket);
@@ -78,24 +78,24 @@ private:
CaptureEvent::DirectionEnum m_direction;
bool m_started;
};
-typedef boost::shared_ptr<SipSession> SipSessionRef;
+typedef boost::shared_ptr<RtpSession> RtpSessionRef;
-class SipSessions
+class RtpSessions
{
public:
- SipSessions();
+ RtpSessions();
void Create(CStdString& ipAndPort);
- void Stop(SipSessionRef& session);
+ void Stop(RtpSessionRef& session);
void ReportSipInvite(SipInviteInfoRef& invite);
void ReportSipBye(SipByeInfo bye);
void ReportRtpPacket(RtpPacketInfoRef& rtpPacket);
void Hoover(time_t now);
private:
- std::map<CStdString, SipSessionRef> m_byIpAndPort;
- std::map<CStdString, SipSessionRef> m_byCallId;
+ std::map<CStdString, RtpSessionRef> m_byIpAndPort;
+ std::map<CStdString, RtpSessionRef> m_byCallId;
LoggerPtr m_log;
};
-typedef ACE_Singleton<SipSessions, ACE_Thread_Mutex> SipSessionsSingleton;
+typedef ACE_Singleton<RtpSessions, ACE_Thread_Mutex> RtpSessionsSingleton;
#endif