Incoming registration NAT detection: don't check port for non udp parties.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5588 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
3843f27737
commit
cfa0be7eb2
|
@ -4843,10 +4843,10 @@ void YateSIPEndPoint::regRun(const SIPMessage* message, SIPTransaction* t)
|
|||
bool nat = false;
|
||||
if (addr.getProtocol().startsWith("sip")) {
|
||||
nat = isNatBetween(addr.getHost(),raddr);
|
||||
if (!nat) {
|
||||
if (!nat && YOBJECT(YateUDPParty,message->getParty())) {
|
||||
int port = addr.getPort();
|
||||
if (!port)
|
||||
port = (addr.getProtocol() == YSTRING("sips")) ? 5061 : 5060;
|
||||
port = 5060;
|
||||
nat = (rport != port) && msg.getBoolValue(YSTRING("nat_port_support"),true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue