diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2007-08-10 09:04:31 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2007-08-10 09:04:31 +0000 |
commit | 526cb3fffa3fc1e8091af575b224c081eb798f16 (patch) | |
tree | f3e4db3d62b34092438fe722823cf641ac6f89eb /orkaudio/audiocaptureplugins/voip/RtpSession.h | |
parent | f514b2da9713da1dc3fd5fca983bdcfaeeefed3d (diff) |
Changed the method of logging failed calls so that the failed calls are associated with a session
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@463 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.h')
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/RtpSession.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.h b/orkaudio/audiocaptureplugins/voip/RtpSession.h index 98464f1..74460ef 100644 --- a/orkaudio/audiocaptureplugins/voip/RtpSession.h +++ b/orkaudio/audiocaptureplugins/voip/RtpSession.h @@ -46,6 +46,23 @@ public: }; typedef boost::shared_ptr<SipInviteInfo> SipInviteInfoRef; +class SipFailureMessageInfo +{ +public: + SipFailureMessageInfo(); + void ToString(CStdString& string); + + struct in_addr m_senderIp; + struct in_addr m_receiverIp; + char m_senderMac[6]; + char m_receiverMac[6]; + CStdString m_callId; + + CStdString m_errorCode; + CStdString m_errorString; +}; +typedef boost::shared_ptr<SipFailureMessageInfo> SipFailureMessageInfoRef; + class SipByeInfo { public: @@ -80,6 +97,7 @@ public: void Start(); bool AddRtpPacket(RtpPacketInfoRef& rtpPacket); void ReportSipInvite(SipInviteInfoRef& invite); + void ReportSipErrorPacket(SipFailureMessageInfoRef& info); bool OrkUidMatches(CStdString &oUid); bool PartyMatches(CStdString &party); @@ -160,6 +178,7 @@ public: void ReportSkinnySoftKeyHold(SkSoftKeyEventMessageStruct* skEvent, IpHeaderStruct* ipHeader); void ReportSkinnySoftKeyResume(SkSoftKeyEventMessageStruct* skEvent, IpHeaderStruct* ipHeader); void ReportRtpPacket(RtpPacketInfoRef& rtpPacket); + void ReportSipErrorPacket(SipFailureMessageInfoRef& sipError); void Hoover(time_t now); EndpointInfoRef GetEndpointInfo(struct in_addr endpointIp); void StartCapture(CStdString& party); |