Answer with TRA to TRA (if T19 not running) in SP mode too.

Start T19 also when manually forcing out all TRA messages.


git-svn-id: http://yate.null.ro/svn/yate/trunk@3747 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-10-22 01:53:39 +00:00
parent 3f08346fb1
commit 903572b240
1 changed files with 6 additions and 3 deletions

View File

@ -1771,6 +1771,8 @@ bool SS7Router::control(NamedList& params)
case SS7Router::Restart:
return restart();
case SS7Router::Traffic:
if (!m_trafficSent.started())
m_trafficSent.start();
sendRestart();
// fall through
case SS7Router::Status:
@ -1872,10 +1874,11 @@ bool SS7Router::control(NamedList& params)
if (m_started && (SS7MsgSNM::TRA == cmd)) {
// allow all routes for which TFx was not received before TRA
silentAllow(type,pc.pack(type));
// if STP is started advertise routes to just restarted node
if (m_transfer && !m_trafficSent.started()) {
// advertise routes and availability to just restarted node
if (!m_trafficSent.started()) {
m_trafficSent.start();
notifyRoutes(SS7Route::KnownState,pc.pack(type));
if (m_transfer)
notifyRoutes(SS7Route::KnownState,pc.pack(type));
sendRestart(type,pc.pack(type));
}
}