diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2009-09-15 11:26:13 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2009-09-15 11:26:13 +0000 |
commit | 3b0b11b04d2e09a18f48b258f04fbedec4479f3c (patch) | |
tree | f961054cb56af9cbaddca2735eca261a02b146ae /orkaudio/audiocaptureplugins/voip/RtpSession.cpp | |
parent | c059289a05edf37e4e01a1736a4f78a456b19879 (diff) |
Added new config.xml parameter RtpTrackByUdpPortOnly, which when set to true, causes the media address to be computed as to contain only the Udp port specified.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@641 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 b9bc898..f571212 100644 --- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp +++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp @@ -1969,8 +1969,16 @@ RtpSessionRef RtpSessions::findNewestByEndpointIp(struct in_addr endpointIpAddr) void RtpSessions::CraftMediaAddress(CStdString& mediaAddress, struct in_addr ipAddress, unsigned short udpPort) { char szIpAddress[16]; - ACE_OS::inet_ntop(AF_INET, (void*)&ipAddress, szIpAddress, sizeof(szIpAddress)); - mediaAddress.Format("%s,%u", szIpAddress, udpPort); + + if(DLLCONFIG.m_rtpTrackByUdpPortOnly == false) + { + ACE_OS::inet_ntop(AF_INET, (void*)&ipAddress, szIpAddress, sizeof(szIpAddress)); + mediaAddress.Format("%s,%u", szIpAddress, udpPort); + } + else + { + mediaAddress.Format("%u", udpPort); + } } void RtpSessions::MapOtherMediaAddress(RtpSessionRef& session, CStdString& ipAndPort) |