Start a newly created Cisco SLT link if its Session is already operational.
This allows proper dynamic addition of links in existing sessions. git-svn-id: http://yate.null.ro/svn/yate/trunk@4114 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
7cace28fc9
commit
baddd611c9
|
@ -246,6 +246,8 @@ public:
|
|||
void handleSmMessage(u_int32_t smMessageType);
|
||||
// Inform all users about session manager status change
|
||||
void informUser(bool up);
|
||||
inline bool operational() const
|
||||
{ return Operational == m_state; }
|
||||
static inline const char* stateName(State s)
|
||||
{ return lookup((int)s,s_smStates); }
|
||||
void changeState(State newState);
|
||||
|
@ -1595,8 +1597,11 @@ SLT::SLT(const String& name, const NamedList& param)
|
|||
m_printMsg = param.getBoolValue("printslt",false);
|
||||
m_autoEmergency = param.getBoolValue("autoemergency",true);
|
||||
m_autostart = param.getBoolValue("autostart",true);
|
||||
if (m_autostart)
|
||||
if (m_autostart) {
|
||||
m_reqStatus = NormalAlignment;
|
||||
if (m_session && m_session->operational())
|
||||
configure(true);
|
||||
}
|
||||
}
|
||||
|
||||
SLT::~SLT()
|
||||
|
|
Loading…
Reference in New Issue