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:
parent
f688401789
commit
51b399d75d
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue