Yate
ISDNQ931State Class Reference

Q.931 ISDN call and call controller state. More...

#include <yatesig.h>

Inheritance diagram for ISDNQ931State:
ISDNQ931Call ISDNQ931CallMonitor

Public Types

enum  State {
  Null = 0x00 , CallInitiated = 0x01 , OverlapSend = 0x02 , OutgoingProceeding = 0x03 ,
  CallDelivered = 0x04 , CallPresent = 0x06 , CallReceived = 0x07 , ConnectReq = 0x08 ,
  IncomingProceeding = 0x09 , Active = 0x0a , DisconnectReq = 0x0b , DisconnectIndication = 0x0c ,
  SuspendReq = 0x0f , ResumeReq = 0x11 , ReleaseReq = 0x13 , CallAbort = 0x16 ,
  OverlapRecv = 0x19 , RestartReq = 0x3d , Restart = 0x3e
}
 

Public Member Functions

 ISDNQ931State ()
 
State state () const
 

Static Public Member Functions

static const char * stateName (u_int8_t s)
 

Static Public Attributes

static const TokenDict s_states []
 

Protected Member Functions

bool checkStateRecv (int type, bool *retrans)
 
bool checkStateSend (int type)
 

Protected Attributes

State m_state
 

Detailed Description

Q.931 ISDN call and call controller state.

Q.931 ISDN call and call controller state

Member Enumeration Documentation

◆ State

enum State

Call and call controller state enumeration values

Constructor & Destructor Documentation

◆ ISDNQ931State()

ISDNQ931State ( )
inline

Constructor

References m_state.

Member Function Documentation

◆ checkStateRecv()

bool checkStateRecv ( int type,
bool * retrans )
protected

Check if a received message type is valid in the current call state

Parameters
typeThe type of the received message
retransOptional flag to set on failure if the message is a retransmission
Returns
False if the message is not valid in the current call state

◆ checkStateSend()

bool checkStateSend ( int type)
protected

Check if a message is allowed to be sent in the current call state

Parameters
typeThe type of the received message
Returns
False if the message is not valid in the current call state

◆ state()

State state ( ) const
inline

Get the state

Returns
The state as enumeration

References m_state.

◆ stateName()

static const char * stateName ( u_int8_t s)
inlinestatic

Get the text associated with a given state value

Parameters
sThe requested state value
Returns
The text associated with the given state value or 0

References s_states.

Member Data Documentation

◆ m_state

State m_state
protected

The call and call controller state

Referenced by ISDNQ931State(), and state().

◆ s_states

const TokenDict s_states[]
static

Keep the association between state values and their texts

Referenced by stateName().


The documentation for this class was generated from the following file: