summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/RtpSession.h
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2006-08-01 14:43:56 +0000
committerHenri Herscher <henri@oreka.org>2006-08-01 14:43:56 +0000
commit73d206c551c8af905f24336695d457ca3986c6e9 (patch)
tree054ca008c0070f0b4f864d8def77973ee6013531 /orkaudio/audiocaptureplugins/voip/RtpSession.h
parent0182c73c34be9dea04a0274755bdba266cb0e7f9 (diff)
Applying changeset 269 from 0.5 to trunk:
Can now get local party info from the Skinny LineStatMessage. git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@320 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.h')
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.h29
1 files changed, 9 insertions, 20 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.h b/orkaudio/audiocaptureplugins/voip/RtpSession.h
index 194db61..96ed18c 100644
--- a/orkaudio/audiocaptureplugins/voip/RtpSession.h
+++ b/orkaudio/audiocaptureplugins/voip/RtpSession.h
@@ -45,31 +45,17 @@ public:
CStdString m_callId;
};
+//=============================================================
-class SccpCallInfoMessageInfo
+class EndpointInfo
{
- CStdString m_callingParty;
- CStdString m_calledParty;
- CStdString m_callId;
-};
-typedef boost::shared_ptr<SccpCallInfoMessageInfo> SccpCallInfoMessageInfoRef;
-
-
-class SccpStartMediaTransmissionInfo
-{
- struct in_addr m_remoteIp;
- int m_remoteTcpPort;
- CStdString m_callId;
+public:
+ CStdString m_extension;
};
-typedef boost::shared_ptr<SccpStartMediaTransmissionInfo> SccpStartMediaTransmissionInfoRef;
-
+typedef boost::shared_ptr<EndpointInfo> EndpointInfoRef;
-class SccpStopMediaTransmissionInfo
-{
- CStdString m_callId;
-};
-typedef boost::shared_ptr<SccpStopMediaTransmissionInfo> SccpStopMediaTransmissionInfoRef;
+// ============================================================
class RtpSession
{
@@ -142,8 +128,10 @@ public:
void ReportSkinnyStartMediaTransmission(SkStartMediaTransmissionStruct*, IpHeaderStruct* ipHeader);
void ReportSkinnyStopMediaTransmission(SkStopMediaTransmissionStruct*, IpHeaderStruct* ipHeader);
void ReportSkinnyOpenReceiveChannelAck(SkOpenReceiveChannelAckStruct*);
+ void ReportSkinnyLineStat(SkLineStatStruct*, IpHeaderStruct* ipHeader);
void ReportRtpPacket(RtpPacketInfoRef& rtpPacket);
void Hoover(time_t now);
+ EndpointInfoRef GetEndpointInfo(struct in_addr endpointIp);
private:
RtpSessionRef findByEndpointIp(struct in_addr);
void ChangeCallId(RtpSessionRef& session, unsigned int newId);
@@ -152,6 +140,7 @@ private:
std::map<CStdString, RtpSessionRef> m_byIpAndPort;
std::map<CStdString, RtpSessionRef> m_byCallId;
+ std::map<unsigned int, EndpointInfoRef> m_endpoints;
LoggerPtr m_log;
AlphaCounter alphaCounter;
};