The component data structure assigns components to an outgoing transaction request or receives components from an incoming transaction message. The general format of the component structure is:
typedef struct Tcap_Comp
{
U8 compType; /* Component type... */
U8 rejSrc; /* source of reject/cancel component */
U8 fill; /* fill for alignment */
U8 fill2; /* fill for alignment */
union /* ANSI or ITU-T component */
{
TcapItuComp ituComp; /* ITU-T component */
TcapAnsiComp ansiComp; /* ITU-T component */
} uProt;
} TcapComp;
Fields are coded as follows:
Field |
Value |
compType |
Indicates the type of component and determines which protocol specific (ANSI or ITU-T) member is used: 0 = TCAP_UNKNOWN Unknown component 1 = TCAP_INVOKE Invoke 2 = TCAP_RET_RES_L Return result last 3 = TCAP_RET_ERR Return error 4 = TCAP_REJECT Reject 5 = TCAP_RET_RES_NL Return result not last 6 = TCAP_INVOKE_L Invoke last 7 = TCAP_INVOKE_NL Invoke not last 8 = TCAP_CANCEL Cancel outstanding invoke |
rejSrc |
Specifies the status of an incoming reject or cancel (timed out invoke) component. rejSrc distinguishes among the different reject sources: 0 = TCAP_COMP_NONE No additional status 5 = TCAP_COMP_CANCEL Invoke component timed out 6 = TCAP_COMP_REJ_USR TCAP user reject component 7 = TCAP_COMP_REJ_LOCAL Local TCAP reject component 8 = TCAP_COMP_REJ_REMOTE Remote TCAP reject component When an outstanding invoke operation times out, the TCAP layer creates a REJECT component with a rejSrc of TCAP_COMP_CANCEL. This field is not used for outgoing components. |
uProt Union |
Indicates protocol-specific component information specified in ANSI component structure and ITU-T component structure. |
This section describes the following common data structures: