From 4501ab5c6cfc68fb2f2a958e39bbc47487c1826d Mon Sep 17 00:00:00 2001 From: Henri Herscher Date: Thu, 11 Jun 2009 23:00:18 +0000 Subject: Added PartiesUseName configuration parameter so that it is possible to report name instead of number for local and remote parties. git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@622 09dcff7a-b715-0410-9601-b79a96267cd0 --- orkaudio/audiocaptureplugins/voip/RtpSession.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.cpp') diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp index dadaa8d..479e0c8 100644 --- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp +++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp @@ -705,7 +705,8 @@ void RtpSession::ReportMetadata() // Report Local party CaptureEventRef event(new CaptureEvent()); event->m_type = CaptureEvent::EtLocalParty; - if(m_protocol == ProtSkinny && DLLCONFIG.m_skinnyNameAsLocalParty == true && m_localPartyName.size()) + if( ( m_protocol == ProtSkinny && DLLCONFIG.m_skinnyNameAsLocalParty == true && m_localPartyName.size() ) || + ( DLLCONFIG.m_partiesUseName == true && m_localPartyName.size() ) ) { event->m_value = m_localPartyName; } @@ -719,7 +720,14 @@ void RtpSession::ReportMetadata() // Report remote party event.reset(new CaptureEvent()); event->m_type = CaptureEvent::EtRemoteParty; - event->m_value = m_remoteParty; + if(DLLCONFIG.m_partiesUseName == true && m_remotePartyName.size()) + { + event->m_value = m_remotePartyName; + } + else + { + event->m_value = m_remoteParty; + } g_captureEventCallBack(event, m_capturePort); m_remotePartyReported = true; -- cgit v1.2.3