Store initially guessed local address, re-register only if it changed.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3172 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
b2d984bba2
commit
8145b0fe96
|
@ -3615,6 +3615,14 @@ void YateSIPLine::login()
|
|||
setValid(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_localDetect) {
|
||||
if (m_localAddr.null())
|
||||
m_localAddr = m->getParty()->getLocalAddr();
|
||||
if (!m_localPort)
|
||||
m_localPort = m->getParty()->getLocalPort();
|
||||
}
|
||||
|
||||
DDebug(&plugin,DebugInfo,"YateSIPLine '%s' emiting %p [%p]",
|
||||
c_str(),m,this);
|
||||
m_tr = plugin.ep()->engine()->addMessage(m);
|
||||
|
|
Loading…
Reference in New Issue