Removed check for even numbered RTP port as many (most?) NAPTs break it.

git-svn-id: http://yate.null.ro/svn/yate/trunk@675 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2006-02-01 14:37:01 +00:00
parent 3c1c26dc42
commit 2e78c6931c
1 changed files with 3 additions and 2 deletions

View File

@ -260,8 +260,9 @@ bool RTPTransport::remoteAddr(SocketAddr& addr, bool sniff)
{
m_autoRemote = sniff;
int p = addr.port();
// make sure we have a port and it's an even one
if (p && ((p & 1) == 0) && addr.valid()) {
// make sure we have a valid address and a port
// we do not check that it's even numbered as many NAPTs will break that
if (p && addr.valid()) {
m_remoteAddr = addr;
m_remoteRTCP = addr;
m_remoteRTCP.port(addr.port()+1);