You are here: SwitchKit® Development Environment - TCAP Interface User’s Guide > 6 SKTAL Parameter Classes > Class TCAP_Reject : public TCAP_Component

Class TCAP_Reject : public TCAP_Component

Purpose

The purpose of the TCAP_Reject component is to define the basic interface to invalid remote operation invokes. The remote stack responds with a TCAP_Reject when an application sends a malformed component.

Summary of Methods

The TCAP_Reject component includes the following methods:

// Problem

// If defined(CCITT)

void SetProblem(const SKTAL_OCTET type, const SKTAL_OCTET code);

void GetProblem(SKTAL_OCTET& type, SKTAL_OCTET& code) const;

// If defined(ANSI)

void SetProblem(const SKTAL_OCTET family, const SKTAL_OCTET code);

void GetProblem(SKTAL_OCTET& family, SKTAL_OCTET& code) const;

// Parameter

// If defined(ANSI)

void GetParameter(SKTAL_OCTET* buf, int& len) const;

void SetParameter(const SKTAL_OCTET* buf, const int len);

void GetParameter(SKTAL_ByteArray& buf) const;

void SetParameter(const SKTAL_ByteArray& buf);

SetProblem()

Description

This method sets the problem code for a reject component. The signature of this method depends on the standard used. Based on the reject code, it is the responsibility of the application to take the appropriate action. Each reject type has its own set of codes, or reasons for the component being rejected. The reject values and codes are defined Appendix A.

Syntax

If defined as ITU:

void SetProblem(const SKTAL_OCTET type, const SKTAL_OCTET code);

Type: the reject type. Possible reject types are defined in Appendix A.
Code: the reject code

If defined as ANSI:

void SetProblem(const SKTAL_OCTET family,

const SKTAL_OCTET code);

family: the problem types. Problem types are defined in Appendix A.

Input Parameters, Input/Output Parameters, & Output Parameters

None

Return Value

None

GetProblem()

Description

This method gets the problem code for a reject component. The signature of this method depends on the standard used. Based on the reject code, it is the responsibility of the application to take the appropriate action. Each reject type has its own set of codes, or reasons for the component being rejected. The reject values and codes are defined in Appendix A.

Syntax

If defined ITU:

void GetProblem(SKTAL_OCTET& type, SKTAL_OCTET& code) const;

Type = the reject type. Possible reject types are defined in Appendix A.
Code = the reject code as defined in Appendix A.

If defined ANSI:

void GetProblem(SKTAL_OCTET& family, SKTAL_OCTET& code) const;

Input Parameters, Input/Output Parameters

None

Output Parameters

family: the problem types. Problem types are defined in Appendix A.

Return Value

None

Each reject type has its own set of codes or reasons for the component being rejected. The reject values and codes are defined in the Appendix sections.

SetParameter()

Description

This method is applicable for ANSI TCAP. See Class TCAP_Invoke.

Syntax

See class TCAP_Invoke

void SetParameter(const SKTAL_OCTET* buf, const int len);

void SetParameter(const SKTAL_ByteArray& buf);

GetParameter()

Description

This method is applicable for ANSI TCAP. See Class TCAP_Invoke.

Syntax

See class TCAP_Invoke

void GetParameter(SKTAL_OCTET* buf, int& len) const;

void GetParameter(SKTAL_ByteArray& buf) const;

See Transaction Capability Application Part.
Comité Consultatif Internationale de Telephonique et Telegraphique (now ITU)
A sequence of eight bits.
American National Standards Institute. ANSI administers and coordinates the U.S. voluntary standardization and conformity assessment system for the
telecommunications industry. More details on these standards may be
viewed at www.ansi.org.
International Telecommunications Union (UN)