summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2008-10-24 22:29:17 +0000
committerHenri Herscher <henri@oreka.org>2008-10-24 22:29:17 +0000
commitf9c9a4fbb5b35e355f6a21fc8645858c12828125 (patch)
treeacf02298d220e6ac34831259e6b28d84e6f96b60
parenta20cd57465eea672d74059f646003f8ff1279870 (diff)
SIP sessions are not inserted in ipAndPort media address map anymore when RTP port is zero (happened when INVITE does not have SDP). This is so that subsequent SDP messages can have a chance to set the session media address to a valid value and allow it to catch RTP.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@566 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
index 6340ada..d720ef5 100644
--- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
+++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
@@ -1235,8 +1235,6 @@ void RtpSessions::ReportSipInvite(SipInviteInfoRef& invite)
// create new session and insert into both maps
CStdString trackingId = m_alphaCounter.GetNext();
RtpSessionRef session(new RtpSession(trackingId));
- session->m_ipAndPort = ipAndPort;
- session->m_rtpIp = invite->m_fromRtpIp;
session->m_callId = invite->m_callId;
session->m_protocol = RtpSession::ProtSip;
session->ReportSipInvite(invite);
@@ -1644,6 +1642,11 @@ RtpSessionRef RtpSessions::findNewestByEndpointIp(struct in_addr endpointIpAddr)
void RtpSessions::SetMediaAddress(RtpSessionRef& session, struct in_addr mediaIp, unsigned short mediaPort)
{
+ if(mediaPort == 0)
+ {
+ return;
+ }
+
CStdString logMsg;
CStdString ipAndPort;
char szMediaIp[16];