Send Traffic Restart Allowed only for the 1st link in service on a linkset.

git-svn-id: http://yate.null.ro/svn/yate/trunk@3506 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-08-25 08:43:55 +00:00
parent 2b96beb505
commit 46350756ed
1 changed files with 5 additions and 2 deletions

View File

@ -771,8 +771,11 @@ void SS7Router::notify(SS7Layer3* network, int sls)
Debug(this,DebugNote,"Isolation ended before shutting down [%p]",this);
m_isolate.stop();
}
if (m_started)
sendRestart(network);
if (m_started) {
const SS7MTP3* mtp3 = YOBJECT(SS7MTP3,network);
if (!mtp3 || (mtp3->linksActive() <= 1))
sendRestart(network);
}
else {
if (!m_restart.started())
restart();