summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2009-05-28 22:00:25 +0000
committerHenri Herscher <henri@oreka.org>2009-05-28 22:00:25 +0000
commit49bd54fee4e12d32b73b851e093048d87b01b88d (patch)
tree03df69b591ebad677abd19f6f6f60abe092997cc
parent6867a3fbe0111d352b9e00388a46249057818cef (diff)
And old session with signalling is now stopped when it had no RTP packets and a new session on the same RTP address comes in. Previously, the older session would prevail.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@617 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
index e6f789c..dadaa8d 100644
--- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
+++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
@@ -1815,7 +1815,7 @@ void RtpSessions::SetMediaAddress(RtpSessionRef& session, struct in_addr mediaIp
{
// A session exists on the same IP+port
RtpSessionRef oldSession = pair->second;
- if(oldSession->m_protocol == RtpSession::ProtRawRtp)
+ if(oldSession->m_protocol == RtpSession::ProtRawRtp || oldSession->m_numRtpPackets == 0)
{
logMsg.Format("[%s] on %s replaces [%s]",
session->m_trackingId, ipAndPort, oldSession->m_trackingId);