summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2007-08-21 14:58:19 +0000
committerHenri Herscher <henri@oreka.org>2007-08-21 14:58:19 +0000
commit413b033ca287e6327b16ede2dc60479a3544f7f5 (patch)
treec3f44328f9c889aea183dff6c666f1e305c5226a /orkaudio/audiocaptureplugins/voip/RtpSession.cpp
parent23842e0a148920ed0ad624e81de8d73e00980140 (diff)
Start message response can now initiate capture in non-lookback recording mode. Moved non-lookback configuration switch from VoIpPlugin node to the top node.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@469 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.cpp')
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
index d7fab30..19f5fc1 100644
--- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
+++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
@@ -480,7 +480,7 @@ bool RtpSession::AddRtpPacket(RtpPacketInfoRef& rtpPacket)
CStdString logMsg;
unsigned char channel = 0;
- if((DLLCONFIG.m_lookBackRecording == false) && (m_numRtpPackets > 0))
+ if((CONFIG.m_lookBackRecording == false) && (m_numRtpPackets > 0))
{
if(m_numRtpPackets == 1 && !m_nonLookBackSessionStarted)
{
@@ -656,7 +656,7 @@ bool RtpSession::AddRtpPacket(RtpPacketInfoRef& rtpPacket)
{
// We've got enough packets to start the session.
// For Raw RTP, the high number is to make sure we have a "real" raw RTP session, not a leftover from a SIP/Skinny session
- if(DLLCONFIG.m_lookBackRecording == true) {
+ if(CONFIG.m_lookBackRecording == true) {
Start();
ReportMetadata();
}
@@ -764,9 +764,12 @@ bool RtpSession::OrkUidMatches(CStdString &oUid)
bool RtpSession::PartyMatches(CStdString &party)
{
- if(m_localParty.CompareNoCase(party) == 0 || m_remoteParty.CompareNoCase(party) == 0)
+ if(party.size() > 0)
{
- return true;
+ if(m_localParty.CompareNoCase(party) == 0 || m_remoteParty.CompareNoCase(party) == 0)
+ {
+ return true;
+ }
}
return false;
}
@@ -1519,7 +1522,7 @@ void RtpSessions::ReportRtpPacket(RtpPacketInfoRef& rtpPacket)
}
}
}
- else if((numSessionsFound == 0) && (DLLCONFIG.m_lookBackRecording == true))
+ else if((numSessionsFound == 0) && (CONFIG.m_lookBackRecording == true))
{
// create new Raw RTP session and insert into IP+Port map
CStdString trackingId = m_alphaCounter.GetNext();