Previous PageTable Of ContentsIndexNext Page



6 Messaging API Data Structures

6.1 Introduction

AG ISDN uses data structures to configure the ISDN protocol stack, send messages to the protocol stack, and receive messages from the protocol stack. This chapter presents the AG ISDN data structures in detail.

These data structures are defined in the isdnparm.h header file.

6.2 Messaging Structures

The following section describes the structures used to convey messages and message data between the ISDN protocol stack and the application: ISDN_MESSAGE and ISDN_PACKET.

For more information on sending and receiving AG ISDN messages, see Chapter 3.

6.2.1 ISDN_MESSAGE Structure

A pointer to the ISDN_MESSAGE structure is passed to isdnSendMessage in the message argument. In this structure, the application specifies the NAI and the connection id of the call that the message concerns. Also specified is the message to be sent, expressed using one of the message primitives documented in Chapter 8. (The message primitive appears in the code field in this structure.)

When the ISDN_PACKET structure is received by the application, it contains a pointer to an ISDN_MESSAGE structure containing message data. For more information, see Section 6.2.2.

ISDN_MESSAGE is defined as follows:

6.2.2 ISDN_PACKET Structure

When a message is sent from the protocol stack to the application, it is sent in an ISDN_PACKET structure. ISDN_PACKET contains an ISDN_MESSAGE structure (containing the message), and a data area containing the ACU message header. A pointer to the ISDN_PACKET structure is included in the CTA_EVENT structure returned by ctaWaitEvent (or the ADI_EVENT structure returned by adiFetchAndProcess).

For more information about receiving ISDN messages, see Section 3.6.

ISDN_PACKET is defined as follows:

6.3 Protocol Parameter Structures

This section lists the data structures passed to isdnStartProtocol. The parms argument points to one of these parameter structures, depending upon the configuration the ISDN protocol stack is to run in:

Each of these structures includes the CONFIG_DL_SAPI structure, described in Section 6.4.

Refer to Chapter 8 for more information on the default values of these parameters.

6.3.1 ISDN_PROTOCOL_PARMS_Q931CC Structure

This data structure configures the protocol stack for Q.931 call control. A pointer to this structure is passed as an argument to isdnStartProtocol. Refer to Appendix C: Parameters for more information on the default values of the parameters in this structure.

For more information on the CONFIG_DL_SAPI structure referenced in this structure, see Section 6.4.

The structure is defined as follows:

6.3.2 ISDN_PROTOCOL_PARMS_LAPD Structure

This data structure configures the protocol stack for LAPD. A pointer to this structure is passed as an argument to isdnStartProtocol. Refer to Appendix C: Parameters for more information on the default values of the parameters in this structure.

For more information on the CONFIG_DL_SAPI structure referenced in this structure, see Section 6.4.

The structure is defined as follows:

6.3.3 ISDN_PROTOCOL_PARMS_CHANNELIZED

This data structure configures the protocol stack so it is accessible to the standard AG Access or CT Access Natural Call Control API. A pointer to this structure is passed as an argument to isdnStartProtocol. The structure is identical to the ISDN_PROTOCOL_PARMS_Q931CC structure.

6.4 CONFIG_DL_SAPI

The CONFIG_DL_SAPI data structure describes the configuration of the data link SAP. CONFIG_DL_SAPI is included in the ISDN_PROTOCOL_ PARMS_Q931CC, ISDN_PROTOCOL_PARMS_LAPD, and ISDN_PROTOCOL_PARMS_CHANNELIZED data structures.

CONFIG_DL_SAPI is included four times in each of these structures. Two of these four must be enabled:

Refer to Appendix C: Parameters for more details on these components and the default values.

CONFIG_DL_SAPI is defined as follows:


Natural MicroSystems, Inc.
100 Crossing Boulevard
Framingham, MA 01702

Contact Developer Support

Previous PageTable Of ContentsIndexNext Page