(Page 2 of 14 in this chapter)
TCAPAddComp
Description
- Adds a component and, optionally, its associated parameter(s) to a TCAP transaction data message being constructed.
Prototype
- S16 TCAPAddComp (U8 *pMessage,
- TcapComp *pComp,
- U16 paramLen,
- U8 *pParamBuf )
- pMessage The address of the caller's message buffer. This buffer must have been previously initialized with the TCAPInitTrans primitive.
- pComp The address of the caller's TcapComp structure where the characteristics of the component (component type, component ID(s), other component type-specific attributes) are defined.
- paramLen The byte length of component parameters to be included in the message. If no paramters are included with this component, this parameter should be set to zero.
- pParamBuf The address of the buffer containing component paramaters; if this component has no parameters, a NULL pointer should be passed for this argument.
Return Values
Details
- For ANSI components, all parameters associated with a component must be enclosed by an ASN.1 SET or SEQUENCE constructor. This is performed on behalf of the application by the TCAP layer, based on the value in the paramFlg field in the ANSI component structure.
- For ITU-T components, there is no requirement that all parameters be enclosed in a ASN.1 SET or SEQUENCE constructor; if this is required by the specific application protocol, then it must be done by the application.
(Page 2 of 14 in this chapter)
tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights
reserved.