diff --git a/libs/ysig/sigtran.cpp b/libs/ysig/sigtran.cpp index f1894abd..eddaa6fe 100644 --- a/libs/ysig/sigtran.cpp +++ b/libs/ysig/sigtran.cpp @@ -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() { diff --git a/libs/ysig/yatesig.h b/libs/ysig/yatesig.h index 4c47fd13..eb259df6 100644 --- a/libs/ysig/yatesig.h +++ b/libs/ysig/yatesig.h @@ -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