# Overview of endpoint structures

When creating MSPP endpoints with mspCreateEndpoint, you must specify endpoint configuration information in two structures:

- MSPP address structure

- MSPP parameter structure

## MSPP address structures

Depending on the type of endpoint you are creating, specify the following parameters in the MSP_ENDPOINT_ADDR structure:

typedef struct tag_MSP_ENDPOINT_ADDR
{
DWORD size;
DWORD nBoard;
DWORD eEpType;
union
{
DS0_ENDPOINT_ADDR DS0;
RTPRTCP_ENDPOINT_ADDR RtpRtcp;
RTPRTCP_V6_ENDPOINT_ADDR RtpRtcpV6;
T38UDP_ENDPOINT_ADDR T38Udp;
// Structure may be expanded to define new Endpoints
} EP;
} MSP_ENDPOINT_ADDR;

Depending on the value specified in the eEpType field, the application also specifies other endpoint address information.

### MSP_ENDPOINT_ADDR

#### Dependent function: mspCreateEndpoint

Field | Type | Default | Units | Description
size | DWORD | N/A |  |
nBoard | DWORD | N/A | N/A | Endpoint location (board number).
eEpType | DWORD | N/A | N/A | Type of MSPP endpoint. Can be the following: MSP_ENDPOINT_DS0 MSP_ENDPOINT_RTPIN MSP_ENDPOINT_RTPOUT MSP_ENDPOINT_RTPFDX MSP_ENDPOINT_RTPIN_V6 MSP_ENDPOINT_RTPOUT_V6 MSP_ENDPOINT_RTPFDX_V6 MSP_ENDPOINT_T38UDP MSP_ENDPOINT_TPKT

For information about endpoint address structures, see:

- DS0 endpoint address structure.

- RTP IPv4 endpoint address structure.

- RTP IPv6 endpoint address structure.

- T38UDP endpoint address structure.

- TPKT endpoint address structure. (No address structure is required for TPKT endpoints.)

## MSPP parameter structures

Depending on the type of endpoint you are creating, specify the following parameters in the MSP_ENDPOINT_PARAMETER structure:

typedef struct tag_MSP_ENDPOINT_PARMS
{
DWORD size;
DWORD eParmType;
union
{
DS0_ENDPOINT_PARMS DS0;
RTPRTCP_ENDPOINT_PARMS RtpRtcp;
RTPRTCP_V6_ENDPOINT_PARMS RtpRtcpV6;
T38UDP_ENDPOINT_PARMS T38Udp;
TPKT_ENDPOINT_PARMS Tpkt;
} EP;
} MSP_ENDPOINT_PARAMETER;

### MSP_ENDPOINT_PARAMETER

#### Dependent function: mspCreateEndpoint

Field | Type | Default | Units | Description
size | DWORD | N/A | N/A | Size of the parameter structure.
eParmType | DWORD | N/A | N/A | Type of MSPP endpoint. Can be one of the following: MSP_ENDPOINT_DS0 MSP_ENDPOINT_RTPIN MSP_ENDPOINT_RTPOUT MSP_ENDPOINT_RTPFDX MSP_ENDPOINT_RTPIN_V6 MSP_ENDPOINT_RTPOUT_V6 MSP_ENDPOINT_RTPFDX_V6 MSP_ENDPOINT_T38UDP MSP_ENDPOINT_TPKT

For information about endpoint parameter structures, see:

- DS0 endpoint parameter structure.

- RTP IPv4 endpoint parameter structure.

- RTP IPv6 endpoint parameter structure.

- T38UDP endpoint parameter structure.

- TPKT endpoint parameter structure.