diff options
author | Henri Herscher <henri@oreka.org> | 2007-08-11 11:51:40 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2007-08-11 11:51:40 +0000 |
commit | 2bb9acafea271a124e42c3f0221bcf3fe9144afa (patch) | |
tree | a0eda9b1f5fac1b24925540ffaeb2f68b5b7c4ab /orkaudio/audiocaptureplugins/voip/RtpSession.cpp | |
parent | 526cb3fffa3fc1e8091af575b224c081eb798f16 (diff) |
SIP failure now adds a "failed" tag to the CDR (not configuration dependant).
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@464 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.cpp')
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/RtpSession.cpp | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp index 189b0ce..a4c50fe 100644 --- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp +++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp @@ -707,45 +707,11 @@ void RtpSession::ReportSipInvite(SipInviteInfoRef& invite) void RtpSession::ReportSipErrorPacket(SipFailureMessageInfoRef& info) { - if(!DLLCONFIG.m_sipReportZeroDurationWhenFailed) - { - return; - } - - /* - * We make sure that before we set the duration to 0, - * the session has already reported its meta data. If - * it hasn't then we do not attempt to report anything - * beyond the plugin. - */ - - if(!((DLLCONFIG.m_lookBackRecording == false) && (m_numRtpPackets > 0))) - { - // Not reported - return; - } - - if( ( ((m_protocol == ProtRawRtp) && m_numRtpPackets < 50) || - ((m_protocol == ProtSkinny) && m_numRtpPackets < 2) || - ((m_protocol == ProtSip) && m_numRtpPackets < 2)) && - DLLCONFIG.m_lookBackRecording == true) - { - // Not reported - return; - } - CaptureEventRef event(new CaptureEvent()); event->m_type = CaptureEvent::EtKeyValue; - event->m_key = CStdString("duration"); - event->m_value = CStdString("0"); + event->m_key = CStdString("failed"); + event->m_value = CStdString("true"); g_captureEventCallBack(event, m_capturePort); - - // Trigger metadata update - event.reset(new CaptureEvent()); - event->m_type = CaptureEvent::EtUpdate; - g_captureEventCallBack(event, m_capturePort); - - ReportMetadata(); } int RtpSession::ProtocolToEnum(CStdString& protocol) |