Yate
Public Types | Public Member Functions | Static Public Member Functions | List of all members
SS7MsgSNM Class Reference

SNM signalling message. More...

#include <yatesig.h>

Inheritance diagram for SS7MsgSNM:
SignallingMessage RefObject GenObject

Public Types

enum  Type {
  Unknown = 0 , COO = 0x11 , ECO = 0x12 , RCT = 0x13 ,
  TFP = 0x14 , RST = 0x15 , RSP = RST , LIN = 0x16 ,
  TRA = 0x17 , DLC = 0x18 , UPU = 0x1a , COA = 0x21 ,
  ECA = 0x22 , TFC = 0x23 , TCP = 0x24 , TFPA = TCP ,
  RSR = 0x25 , LUN = 0x26 , TRW = 0x27 , CSS = 0x28 ,
  XCO = 0x31 , TFR = 0x34 , RCP = 0x35 , LIA = 0x36 ,
  CNS = 0x38 , XCA = 0x41 , TCR = 0x44 , RCR = 0x45 ,
  LUA = 0x46 , CNP = 0x48 , CBD = 0x51 , TFA = 0x54 ,
  LID = 0x56 , CBA = 0x61 , TCA = 0x64 , TFAA = TCA ,
  LFU = 0x66 , LLT = 0x76 , LLI = LLT , LRT = 0x86 ,
  LRI = LRT
}
 
enum  Group {
  CHM = 0x01 , ECM = 0x02 , FCM = 0x03 , TFM = 0x04 ,
  RSM = 0x05 , MIM = 0x06 , TRM = 0x07 , DLM = 0x08 ,
  UFC = 0x0a
}
 

Public Member Functions

 SS7MsgSNM (unsigned char type)
 
unsigned char type () const
 
unsigned char group () const
 
void toString (String &dest, const SS7Label &label, bool params) const
 
- Public Member Functions inherited from SignallingMessage
 SignallingMessage (const char *name=0)
 
const char * name () const
 
NamedListparams ()
 
const NamedListparams () const
 
- Public Member Functions inherited from RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void * getObject (const String &name) const
 
virtual bool alive () const
 
bool ref ()
 
bool deref ()
 
int refcount () const
 
virtual void destruct ()
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual bool alive () const
 
virtual void destruct ()
 
virtual const StringtoString () const
 
virtual const StringtraceId () const
 
virtual void * getObject (const String &name) const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Static Public Member Functions

static SS7MsgSNMparse (SS7Management *receiver, unsigned char type, SS7PointCode::Type pcType, const unsigned char *buf, unsigned int len)
 
static const TokenDictnames ()
 
static const char * lookup (Type type, const char *defvalue=0)
 
static Type lookup (const char *name, Type defvalue=Unknown)
 
- Static Public Member Functions inherited from RefObject
static bool alive (const RefObject *obj)
 
static bool efficientIncDec ()
 
- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 

Additional Inherited Members

- Protected Member Functions inherited from RefObject
virtual void zeroRefs ()
 
bool resurrect ()
 
virtual void destroyed ()
 
- Protected Attributes inherited from SignallingMessage
NamedList m_params
 

Detailed Description

SNM signalling message.

Decoded Signalling Network Management (SNM) User Part message

Member Enumeration Documentation

◆ Group

enum Group

SNM Message group (H0) as defined by Q.704 15.3

◆ Type

enum Type

SNM Message type as defined by Q.704 Table 1

Constructor & Destructor Documentation

◆ SS7MsgSNM()

SS7MsgSNM ( unsigned char  type)

Constructor

Parameters
typeMessage type

Member Function Documentation

◆ group()

unsigned char group ( ) const
inline

Get the group this message belongs to

Returns
This message's group

◆ lookup() [1/2]

static Type lookup ( const char *  name,
Type  defvalue = Unknown 
)
inlinestatic

Look up a SNM message name

Parameters
nameString name of the SNM message
defvalueDefault type to return
Returns
Encoded type of the SNM message

◆ lookup() [2/2]

static const char * lookup ( Type  type,
const char *  defvalue = 0 
)
inlinestatic

Convert a SNM message type to a C string

Parameters
typeType of SNM message to look up
defvalueDefault string to return
Returns
Name of the SNM message type

◆ names()

static const TokenDict * names ( )
static

Get the dictionary containing the names of the message type

◆ parse()

static SS7MsgSNM * parse ( SS7Management receiver,
unsigned char  type,
SS7PointCode::Type  pcType,
const unsigned char *  buf,
unsigned int  len 
)
static

Parse a received buffer and build a message from it

Parameters
receiverThe SS7 management entity that received the MSU
typeMessage type
pcTypeThe point code type contained in received MSU's label
bufBuffer after message head
lenBuffer length
Returns
Valid message pointer of 0 on failure

◆ toString()

void toString ( String dest,
const SS7Label label,
bool  params 
) const

Fill a string with this message's parameters for debug purposes

Parameters
destThe destination string
labelThe routing label
paramsTrue to add parameters

◆ type()

unsigned char type ( ) const
inline

Get the type of this message

Returns
The type of this message

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