Fixed the way SS7 L4 detaches early from the SS7 router.

Added a conditional debugging message when engine searches a component.


git-svn-id: http://voip.null.ro/svn/yate@3369 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-06-09 21:07:50 +00:00
parent 06047d1bb9
commit d646d0da2f
2 changed files with 2 additions and 1 deletions

View File

@ -271,6 +271,7 @@ bool SignallingEngine::find(const SignallingComponent* component)
if (!component)
return false;
Lock mylock(this);
DDebug(this,DebugAll,"Engine finding component @%p [%p]",component,this);
return m_components.find(component) != 0;
}

View File

@ -49,7 +49,7 @@ void SS7Layer4::attach(SS7Layer3* network)
lock.drop();
if (tmp) {
const char* name = 0;
if (engine() && engine()->find(tmp)) {
if (!engine() || engine()->find(tmp)) {
name = tmp->toString().safe();
if (tmp->getObject("SS7Router"))
(static_cast<SS7Router*>(tmp))->detach(this);