diff options
author | Henri Herscher <henri@oreka.org> | 2009-06-11 23:00:18 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2009-06-11 23:00:18 +0000 |
commit | 4501ab5c6cfc68fb2f2a958e39bbc47487c1826d (patch) | |
tree | 999b64cf8b66eab3cf2e49a101a387cd3dbd69db /orkaudio/audiocaptureplugins/voip/RtpSession.cpp | |
parent | 028b5c83275e16a286a26a63a3dcb4698e824793 (diff) |
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
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.cpp')
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/RtpSession.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
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; |