summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2005-12-13 22:39:10 +0000
committerHenri Herscher <henri@oreka.org>2005-12-13 22:39:10 +0000
commit18c6d6e321a2163574a2881e89530ca655ffdfb2 (patch)
tree0c52ec531a208a49b3eb0aa47ad9641dda4dabd8 /orkaudio/audiocaptureplugins/voip/RtpSession.cpp
parentf7ad4f6b1179ad95305ee6ee62760cd3c76bda46 (diff)
Added ToString method to RtpPacketInfo class + RTP session now logs first packets for both ways on INFO level.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@106 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.cpp')
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
index d47361f..5a7a455 100644
--- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
+++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
@@ -235,6 +235,8 @@ void RtpSession::ReportMetadata()
void RtpSession::AddRtpPacket(RtpPacketInfoRef& rtpPacket)
{
+ CStdString logMsg;
+
if(m_lastRtpPacket.get() == NULL)
{
// Until now, we knew the remote IP and port for RTP (at best, as given by SIP invite or Skinny StartMediaTransmission)
@@ -257,7 +259,14 @@ void RtpSession::AddRtpPacket(RtpPacketInfoRef& rtpPacket)
m_numRtpPackets++;
if(m_lastRtpPacketSide1.get() == NULL)
{
+ // First RTP packet for side 1
m_lastRtpPacketSide1 = rtpPacket;
+ if(m_log->isInfoEnabled())
+ {
+ rtpPacket->ToString(logMsg);
+ logMsg = "1st packet s1: " + logMsg;
+ LOG4CXX_INFO(m_log, logMsg);
+ }
}
else
{
@@ -267,6 +276,16 @@ void RtpSession::AddRtpPacket(RtpPacketInfoRef& rtpPacket)
}
else
{
+ if(m_lastRtpPacketSide2.get() == NULL)
+ {
+ // First RTP packet for side 2
+ if(m_log->isInfoEnabled())
+ {
+ rtpPacket->ToString(logMsg);
+ logMsg = "1st packet s2: " + logMsg;
+ LOG4CXX_INFO(m_log, logMsg);
+ }
+ }
m_lastRtpPacketSide2 = rtpPacket;
}
}