summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/RtpSession.h
diff options
context:
space:
mode:
authorGerald Begumisa <ben_g@users.sourceforge.net>2008-08-27 13:39:16 +0000
committerGerald Begumisa <ben_g@users.sourceforge.net>2008-08-27 13:39:16 +0000
commitb6519c2c1e4fa79049e5d5fba05a78d890c68aaf (patch)
tree3c515172a1a96c9555f1cda91f937b63181b1c73 /orkaudio/audiocaptureplugins/voip/RtpSession.h
parent758c81485d816de9fbf76889979e6bd853f118dd (diff)
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
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.h')
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.h19
1 files changed, 18 insertions, 1 deletions
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<Sip200OkInfo> 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<SipSessionProgressInfo> 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);