On transport failure set the SIGTRAN ASP state down.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4384 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-05-17 11:55:38 +00:00
parent f688401789
commit 51b399d75d
2 changed files with 18 additions and 0 deletions

View File

@ -546,6 +546,18 @@ void SIGAdaptClient::detach(SIGAdaptUser* user)
}
}
// Status notification from transport layer
void SIGAdaptClient::notifyLayer(SignallingInterface::Notification status)
{
switch (status) {
case SignallingInterface::LinkDown:
case SignallingInterface::HardwareError:
setState(AspDown);
break;
default:
return;
}
}
// Request activation of the ASP
bool SIGAdaptClient::activate()
{

View File

@ -4700,6 +4700,12 @@ public:
AspActive
};
/**
* Method called when the transport status has been changed
* @param status Status of the transport causing the notification
*/
virtual void notifyLayer(SignallingInterface::Notification status);
protected:
/**
* Constructs an uninitialized User Adaptation client component