From b6519c2c1e4fa79049e5d5fba05a78d890c68aaf Mon Sep 17 00:00:00 2001 From: Gerald Begumisa Date: Wed, 27 Aug 2008 13:39:16 +0000 Subject: A new configuration parameter, SipDetectSessionProgress, has been added. This parameter defaults to "true" and should be configured under the VoIpPlugin section of config.xml if it needs to be turned off. With this parameter set to "true", the SIP Session Progress message (SIP/2.0 183 Session Progress) is detected. The SDP in the message is used to force media address change on the session. git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@557 09dcff7a-b715-0410-9601-b79a96267cd0 --- orkaudio/audiocaptureplugins/voip/RtpSession.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.h') diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.h b/orkaudio/audiocaptureplugins/voip/RtpSession.h index abf7787..089086f 100644 --- a/orkaudio/audiocaptureplugins/voip/RtpSession.h +++ b/orkaudio/audiocaptureplugins/voip/RtpSession.h @@ -92,10 +92,26 @@ public: CStdString m_from; CStdString m_to; }; - typedef boost::shared_ptr Sip200OkInfoRef; +class SipSessionProgressInfo +{ +public: + SipSessionProgressInfo(); + void ToString(CStdString& string); + + CStdString m_callId; + struct in_addr m_mediaIp; + CStdString m_mediaPort; + + struct in_addr m_senderIp; + struct in_addr m_receiverIp; + CStdString m_from; + CStdString m_to; +}; +typedef boost::shared_ptr SipSessionProgressInfoRef; + //============================================================= class EndpointInfo @@ -226,6 +242,7 @@ public: void ReportRtpPacket(RtpPacketInfoRef& rtpPacket); void ReportSipErrorPacket(SipFailureMessageInfoRef& sipError); void ReportSip200Ok(Sip200OkInfoRef info); + void ReportSipSessionProgress(SipSessionProgressInfoRef& info); void Hoover(time_t now); EndpointInfoRef GetEndpointInfo(struct in_addr endpointIp); void StartCapture(CStdString& party); -- cgit v1.2.3