Yate
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
SCCP Class Reference

Abstract SS7 SCCP interface. More...

#include <yatesig.h>

Inheritance diagram for SCCP:
SignallingComponent RefObject DebugEnabler GenObject SS7SCCP SS7SUA

List of all members.

Public Types

enum  Type {
  CoordinateRequest = 0, CoordinateConfirm = 1, CoordinateIndication = 2, CoordinateResponse = 3,
  StatusIndication = 4, StatusRequest = 5, PointCodeStatusIndication = 6, TraficIndication = 7,
  SubsystemStatus = 8
}

Public Member Functions

 SCCP ()
virtual ~SCCP ()
virtual int sendMessage (DataBlock &data, const NamedList &params)
virtual bool managementStatus (Type type, NamedList &params)
virtual void attach (SCCPUser *user)
virtual void detach (SCCPUser *user)
virtual void attachGTT (GTT *gtt)
virtual void updateTables (const NamedList &params)

Static Public Member Functions

static const TokenDictnotifTypes ()

Protected Member Functions

NamedListtranslateGT (const NamedList &params, const String &prefix)
HandledMSU pushMessage (DataBlock &data, NamedList &params, int ssn)
HandledMSU notifyMessage (DataBlock &data, NamedList &params, int ssn)
bool managementMessage (Type type, NamedList &params)
virtual bool isEndpoint ()

Friends

class SCCPManagement

Detailed Description

Abstract SS7 SCCP interface.

An interface to a SS7 Signalling Connection Control Part


Constructor & Destructor Documentation

SCCP ( )

Constructor

virtual ~SCCP ( ) [virtual]

Destructor


Member Function Documentation

virtual void attach ( SCCPUser user) [virtual]

Attach an user to this SS7 SCCP

Parameters:
userPointer to the SCCP user
virtual void attachGTT ( GTT gtt) [virtual]

Attach an Global Title Translator to this SS7 SCCP

Parameters:
gttPointer to the Global Title Translator
virtual void detach ( SCCPUser user) [virtual]

Detach an user from this SS7 SCCP

Parameters:
userPointer to the SCCP user
virtual bool isEndpoint ( ) [inline, protected, virtual]

Check if this sccp is an endpoint

Returns:
False

Reimplemented in SS7SCCP.

bool managementMessage ( Type  type,
NamedList params 
) [protected]

Broadcast a management message to all attached users

Parameters:
typeThe type of notification
paramsThe list of parameters
Returns:
True if at least one user processed the message
virtual bool managementStatus ( Type  type,
NamedList params 
) [virtual]

Receive management information from attached users.

Parameters:
typeThe type of management message
paramsList of parameters (Affected subsystem [M])
Returns:
True if the notification was processed

Reimplemented in SS7SCCP.

static const TokenDict* notifTypes ( ) [static]

Obtain the dictionary for notifications types

Returns:
Pointer to the notification types dictionary
HandledMSU notifyMessage ( DataBlock data,
NamedList params,
int  ssn 
) [protected]

Notify the users that a message failed to be delivered to destination

Parameters:
dataThe message data
paramsThe list of parameters
ssnThe ssn of the SCCP user
Returns:
HandledMSU enum value
HandledMSU pushMessage ( DataBlock data,
NamedList params,
int  ssn 
) [protected]

Send a SCCP message to users list for processing

Parameters:
dataThe message data
paramsThe list of parameters
ssnThe ssn of the SCCP user
Returns:
HandledMSU enum value
virtual int sendMessage ( DataBlock data,
const NamedList params 
) [virtual]

Send a message

Parameters:
dataData to be transported trough SCCP protocol
paramsSCCP parameters SCCP parameters : MessageReturn : boolean / integer True or 0x08 to return message on error. NOTE int values should me below 0x0f sequenceControl : boolean. True to send messages in sequence LocalPC : integer. Local pointcode RemotePC : integer. Remote pointcode Address Parameter: Address parameter starts with : CallingPartyAddress or CalledPartyAddress followed by: .ssn : integer (0-255) Subsequence number .pointcode : integer Packed pointcode .gt : string The digits of the global title .gt.np : integer GT numbering plan .gt.encoding : integer GT encoding scheme .gt.tt : integer GT Translation type .gt.nature : integer Gt nature of address indicator (ITU only) Importance : integer (0-7) Importance of the message! (ITU only)

Reimplemented in SS7SCCP.

NamedList* translateGT ( const NamedList params,
const String prefix 
) [protected]

Translate a Global Title

Parameters:
paramsThe Global Title content
prefixThe prefix of the global title content parameters
Returns:
a new SCCP route or 0 is no route was found

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