Yate
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends
ISDNQ931IE Class Reference

A Q.931 ISDN Layer 3 message Information Element. More...

#include <yatesig.h>

Inheritance diagram for ISDNQ931IE:
NamedList String GenObject

List of all members.

Public Types

enum  Type {
  Shift = 0x90, MoreData = 0xa0, SendComplete = 0xa1, Congestion = 0xb0,
  Repeat = 0xd0, Segmented = 0x00, BearerCaps = 0x04, Cause = 0x08,
  CallIdentity = 0x10, CallState = 0x14, ChannelID = 0x18, Progress = 0x1e,
  NetFacility = 0x20, Notification = 0x27, Display = 0x28, DateTime = 0x29,
  Keypad = 0x2c, Signal = 0x34, ConnectedNo = 0x4c, CallingNo = 0x6c,
  CallingSubAddr = 0x6d, CalledNo = 0x70, CalledSubAddr = 0x71, NetTransit = 0x78,
  Restart = 0x79, LoLayerCompat = 0x7c, HiLayerCompat = 0x7d, UserUser = 0x7e,
  Escape = 0x7f
}

Public Member Functions

 ISDNQ931IE (u_int16_t type)
virtual ~ISDNQ931IE ()
u_int8_t type () const
void addParamPrefix (const char *name, const char *value)
void toString (String &dest, bool extendedDebug, const char *before=0)

Static Public Member Functions

static const char * typeName (int type, const char *defVal=0)

Public Attributes

DataBlock m_buffer

Static Public Attributes

static const TokenDict s_type []

Friends

class ISDNQ931Message

Detailed Description

A Q.931 ISDN Layer 3 message Information Element.

Q.931 ISDN Layer 3 message Information Element


Member Enumeration Documentation

enum Type

Keep IE type enumerations. See Q.931 4.5


Constructor & Destructor Documentation

ISDNQ931IE ( u_int16_t  type)

Constructor Constructs an unknown IE with raw data

Parameters:
typeThe type of this IE
virtual ~ISDNQ931IE ( ) [virtual]

Destructor


Member Function Documentation

void addParamPrefix ( const char *  name,
const char *  value 
) [inline]

Add a parameter using the IE name as prefix

Parameters:
nameParameter name
valueParameter value
void toString ( String dest,
bool  extendedDebug,
const char *  before = 0 
)

Put this message into a string for debug purposes

Parameters:
destThe destination string
extendedDebugTrue to add the content of this IE and dump data. If false, only the IE name is added to the destination string
beforeOptional string to be added before
u_int8_t type ( ) const [inline]

Get the type of this IE

Returns:
The type of this IE
static const char* typeName ( int  type,
const char *  defVal = 0 
) [inline, static]

Get the string associated with a given IE type

Parameters:
typeThe IE type whose string we want to get
defValThe value to return if not found
Returns:
Pointer to the requested string or defValue

References TelEngine::lookup().


Member Data Documentation

Internally used buffer

const TokenDict s_type[] [static]

Keep the string associated with IE types


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