diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2008-04-08 21:20:14 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2008-04-08 21:20:14 +0000 |
commit | 62307f579598d3ace8916aa3b66f6c3fa5c73ff9 (patch) | |
tree | 8bb81d2c2528a558d1e9af75e28ff9dcbd9a35f4 | |
parent | bb762969878d1f45cdbb9a4988472272039a37b1 (diff) |
Added configuration parameter LocalPartyForceLocalMac to the VoIpPlugin section of config.xml. Setting LocalPartyForceLocalMac to 'true' forces the local party to be set to the local MAC address
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@533 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/RtpSession.cpp | 6 | ||||
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/VoIpConfig.cpp | 2 | ||||
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/VoIpConfig.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp index 46535fc..2ade65d 100644 --- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp +++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp @@ -428,6 +428,12 @@ void RtpSession::ReportMetadata() } } + if(DLLCONFIG.m_localPartyForceLocalMac) + { + m_localParty = ""; + MemMacToHumanReadable((unsigned char*)m_localMac, m_localParty); + } + // Report Local party CaptureEventRef event(new CaptureEvent()); event->m_type = CaptureEvent::EtLocalParty; diff --git a/orkaudio/audiocaptureplugins/voip/VoIpConfig.cpp b/orkaudio/audiocaptureplugins/voip/VoIpConfig.cpp index ddd1758..9c46d77 100644 --- a/orkaudio/audiocaptureplugins/voip/VoIpConfig.cpp +++ b/orkaudio/audiocaptureplugins/voip/VoIpConfig.cpp @@ -48,6 +48,7 @@ VoIpConfig::VoIpConfig() m_useMacIfNoLocalParty = false; // Uses IP address by default m_localPartyForceLocalIp = false; + m_localPartyForceLocalMac = false; m_skinnyIgnoreStopMediaTransmission = false; m_skinnyIgnoreOpenReceiveChannelAck = false; @@ -100,6 +101,7 @@ void VoIpConfig::Define(Serializer* s) s->BoolValue("UseMacIfNoLocalParty", m_useMacIfNoLocalParty); s->BoolValue("LocalPartyForceLocalIp", m_localPartyForceLocalIp); + s->BoolValue("LocalPartyForceLocalMac", m_localPartyForceLocalMac); s->BoolValue("SkinnyIgnoreStopMediaTransmission", m_skinnyIgnoreStopMediaTransmission); s->BoolValue("SkinnyIgnoreOpenReceiveChannelAck", m_skinnyIgnoreOpenReceiveChannelAck); diff --git a/orkaudio/audiocaptureplugins/voip/VoIpConfig.h b/orkaudio/audiocaptureplugins/voip/VoIpConfig.h index 801bdc6..78716cf 100644 --- a/orkaudio/audiocaptureplugins/voip/VoIpConfig.h +++ b/orkaudio/audiocaptureplugins/voip/VoIpConfig.h @@ -83,6 +83,7 @@ public: bool m_useMacIfNoLocalParty; bool m_localPartyForceLocalIp; + bool m_localPartyForceLocalMac; bool m_skinnyIgnoreStopMediaTransmission; bool m_skinnyIgnoreOpenReceiveChannelAck; |