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:
paulc 2010-04-07 11:27:30 +00:00
parent b2d984bba2
commit 8145b0fe96
1 changed files with 8 additions and 0 deletions

View File

@ -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);