Yate
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
SS7TCAPTransactionANSI Class Reference

ANSI SS7 TCAP transaction implementation. More...

#include <yatesig.h>

Inheritance diagram for SS7TCAPTransactionANSI:
SS7TCAPTransaction GenObject Mutex Lockable

List of all members.

Public Types

enum  TCAPANSIComponentType {
  CompUnknown = 0x0, Local = 0x1, InvokeLast = 0xe9, ReturnResultLast = 0xea,
  ReturnError = 0xeb, Reject = 0xec, InvokeNotLast = 0xed, ReturnResultNotLast = 0xee
}
enum  ANSITransactionType {
  Unknown = 0x0, Unidirectional = 0xe1, QueryWithPermission = 0xe2, QueryWithoutPermission = 0xe3,
  Response = 0xe4, ConversationWithPermission = 0xe5, ConversationWithoutPermission = 0xe6, Abort = 0xf6
}

Public Member Functions

 SS7TCAPTransactionANSI (SS7TCAP *tcap, SS7TCAP::TCAPUserTransActions type, const String &transactID, NamedList &params, u_int64_t timeout, bool initLocal=true)
 ~SS7TCAPTransactionANSI ()
virtual SS7TCAPError handleData (NamedList &params, DataBlock &data)
virtual SS7TCAPError update (SS7TCAP::TCAPUserTransActions type, NamedList &params, bool updateByUser=true)
virtual SS7TCAPError handleDialogPortion (NamedList &params, bool byUser=true)
virtual void updateToEnd ()
virtual void updateState (bool byUser)
virtual void requestContent (NamedList &params, DataBlock &data)

Static Public Member Functions

static void encodePAbort (SS7TCAPTransaction *tr, NamedList &params, DataBlock &data)
static SS7TCAPError decodePAbort (SS7TCAPTransaction *tr, NamedList &params, DataBlock &data)

Static Public Attributes

static const TokenDict s_ansiTransactTypes []

Detailed Description

ANSI SS7 TCAP transaction implementation.

Implementation of SS7 Transactional Capabilities Application Part Transaction - specification ANSI


Constructor & Destructor Documentation

SS7TCAPTransactionANSI ( SS7TCAP tcap,
SS7TCAP::TCAPUserTransActions  type,
const String transactID,
NamedList params,
u_int64_t  timeout,
bool  initLocal = true 
)

Constructor

Parameters:
tcapTCAP holding this transaction
typeInitiating type for transaction
transactIDTransaction ID
paramsDecoded TCAP parameters for building the transaction
timeoutTransaction timeout
initLocalTrue if the transaction was initiated locally, false if not

Destructor


Member Function Documentation

static SS7TCAPError decodePAbort ( SS7TCAPTransaction tr,
NamedList params,
DataBlock data 
) [static]

Decode P-Abort TCAP message portion

Parameters:
trThe transaction on which the abort was signalled
paramsNamedList reference to fill with the decoded P-Abort information
dataDataBlock reference from which to decode P-Abort information
static void encodePAbort ( SS7TCAPTransaction tr,
NamedList params,
DataBlock data 
) [static]

Encode P-Abort information

Parameters:
trThe transaction on which the abort was signalled
paramsNamedList reference from which to get the P-Abort information
dataDataBlock reference in which to insert the encoded P-Abort information
virtual SS7TCAPError handleData ( NamedList params,
DataBlock data 
) [virtual]

Process transaction data and fill the NamedList with the decoded data

Parameters:
paramsNamedList to fill with decoded data
dataData to decode
Returns:
A TCAP error encountered whilst decoding

Implements SS7TCAPTransaction.

virtual SS7TCAPError handleDialogPortion ( NamedList params,
bool  byUser = true 
) [virtual]

Handle TCAP relevant dialog data

Parameters:
paramsNamedList containing (if present) dialog information
byUserTrue if the dialog information is provided by the local user, false otherwise
Returns:
A report error

Implements SS7TCAPTransaction.

virtual void requestContent ( NamedList params,
DataBlock data 
) [virtual]

Request content for this transaction

Parameters:
paramsList of parameters of this tranaction
dataData block to fill with encoded content

Implements SS7TCAPTransaction.

virtual SS7TCAPError update ( SS7TCAP::TCAPUserTransActions  type,
NamedList params,
bool  updateByUser = true 
) [virtual]

An update request for this transaction

Parameters:
typeThe type of transaction to which this transaction should be updated
paramsUpdate parameter
updateByUserTrue if the update is made by the local user, false if it's made by the remote end
Returns:
A TCAP Error

Implements SS7TCAPTransaction.

virtual void updateState ( bool  byUser) [virtual]

Update transaction state

Parameters:
byUserTrue if update is requested by user, false if by remote

Implements SS7TCAPTransaction.

virtual void updateToEnd ( ) [virtual]

Update the state of this transaction to end the transaction

Reimplemented from SS7TCAPTransaction.


Member Data Documentation

const TokenDict s_ansiTransactTypes[] [static]

Dictionary keeping string versions of transaction types


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