From 0ef1e5245dd3112c25001439b72386e9004cb545 Mon Sep 17 00:00:00 2001 From: Gerald Begumisa Date: Tue, 15 Apr 2008 14:44:51 +0000 Subject: Added support for the case where the SIP INVITE has no SDP - but SDP is to be later obtained from a later SIP 200 OK. For this to work, set the parameter SipUse200OkMediaAddress to true (this should be configured under the VoIpPlugin section of config.xml). git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@534 09dcff7a-b715-0410-9601-b79a96267cd0 --- orkaudio/audiocaptureplugins/voip/VoIp.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'orkaudio/audiocaptureplugins/voip/VoIp.cpp') diff --git a/orkaudio/audiocaptureplugins/voip/VoIp.cpp b/orkaudio/audiocaptureplugins/voip/VoIp.cpp index a2a07a4..130c720 100644 --- a/orkaudio/audiocaptureplugins/voip/VoIp.cpp +++ b/orkaudio/audiocaptureplugins/voip/VoIp.cpp @@ -1813,6 +1813,16 @@ bool TrySipInvite(EthernetHeaderStruct* ethernetHeader, IpHeaderStruct* ipHeader { RtpSessionsSingleton::instance()->ReportSipInvite(info); } + else + { + if(drop == false && DLLCONFIG.m_sipUse200OkMediaAddress && info->m_from.size() && info->m_to.size() && info->m_callId.size()) + { + // Get information from 200 OK + RtpSessionsSingleton::instance()->ReportSipInvite(info); + } + //logMsg.Format("Not logging this INVITE: drop:%s m_fromRtpPort:%s from:%s to:%s callId:%s", (drop ? "true" : "false"), info->m_fromRtpPort, info->m_from, info->m_to, info->m_callId); + //LOG4CXX_INFO(s_sipPacketLog, logMsg); + } } return result; } -- cgit v1.2.3