# Creating an endpoint

Create endpoints for the 3G-324M Interface by using mspCreateEndpoint. The 3G-324M Interface supports the following endpoint types:

- IPv4 audio

- IPv4 video

- IPv6 audio

- IPv6 video

- MUX

## IPv4 audio endpoint types

The following table lists the IPv4 audio endpoint types most likely to be used in the 3G-324M Interface, along with their associated identifiers and initialization structures.

Note: G.723 audio is used for G.723 bypass, AMR audio is used for AMR bypass, and G.711 audio is used for AMR transcoding.

Endpoint type | Identifier | Initialization structure
G.723 audio, AMR audio, or G.711 audio full-duplex | MSP_ENDPOINT_RTPFDX | RTPRTCP_ENDPOINT_ADDR RTPRTCP_ENDPOINT_PARMS
G.723 audio, AMR audio, or G.711 audio simplex receive | MSP_ENDPOINT_RTPIN | RTPRTCP_ENDPOINT_ADDR RTPRTCP_ENDPOINT_PARMS
G.723 audio, AMR audio, or G.711 audio simplex send | MSP_ENDPOINT_RTPOUT | RTPRTCP_ENDPOINT_ADDR RTPRTCP_ENDPOINT_PARMS
DS0 (used for AMR transcoding) | MSP_ENDPOINT_DS0 | DS0_ENDPOINT_ADDR DS0_ENDPOINT_PARMS

## IPv4 video endpoint types

The following table lists the IPv4 video endpoint types that can be used in the 3G-324M Interface, along with their associated identifiers and initialization structures. The IPv4 video endpoint types use RTPRTCP_ENDPOINT_ADDR and RTPRTCP_ENDPOINT_PARMS as initialization structures.

Note: The endpoints listed in this table are Video Access-specific.

Endpoint type | Identifier
MPEG-4 full-duplex | MSP_ENDPOINT_RTPFDX_VIDEO_MPEG4
MPEG-4 simplex receive | MSP_ENDPOINT_RTPIN_VIDEO_MPEG4
MPEG-4 simplex send | MSP_ENDPOINT_RTPOUT_VIDEO_MPEG4
H.263 full-duplex | MSP_ENDPOINT_RTPFDX_VIDEO_H263
H.263 simplex receive | MSP_ENDPOINT_RTPIN_VIDEO_H263
H.263 simplex send | MSP_ENDPOINT_RTPOUT_VIDEO_H263
H.264 full-duplex | MSP_ENDPOINT_RTPFDX_VIDEO_H264
H.264 simplex receive | MSP_ENDPOINT_RTPIN_VIDEO_H264
H.264 simplex send | MSP_ENDPOINT_RTPOUT_VIDEO_H264

## IPv6 audio endpoint types

The following table lists the IPv6 audio endpoint types most likely to be used in the 3G-324M Interface, along with their associated identifiers. All of these IPv6 audio endpoint types use RTPRTCP_V6_ENDPOINT_ADDR and RTPRTCP_V6_ENDPOINT_PARMS as initialization structures.

Endpoint type | Identifier
G.723 audio, AMR audio, or G.711 audio full-duplex for IPv6 | MSP_ENDPOINT_RTPFDX_V6
G.723 audio, AMR audio, or G.711 audio simplex receive for IPv6 | MSP_ENDPOINT_RTPIN_V6
G.723 audio, AMR audio, or G.711 audio simplex send for IPv6 | MSP_ENDPOINT_RTPOUT_V6

## IPv6 video endpoint types

Note: The endpoints listed in this table are Video Access-specific.

The following table lists the IPv6 video endpoint types that can be used in the 3G-324M Interface, along with their associated identifiers. The IPv6 video endpoint types use RTPRTCP_V6_ENDPOINT_ADDR and RTPRTCP_V6_ENDPOINT_PARMS as initialization structures.

Endpoint type | Identifier
MPEG-4 full-duplex for IPv6 | MSP_ENDPOINT_RTPFDX_VIDEO_MPEG4_V6
MPEG-4 simplex receive for IPv6 | MSP_ENDPOINT_RTPIN_VIDEO_MPEG4_V6
MPEG-4 simplex send for IPv6 | MSP_ENDPOINT_RTPOUT_VIDEO_MPEG4_V6
H.263 full-duplex for IPv6 | MSP_ENDPOINT_RTPFDX_VIDEO_H263_V6
H.263 simplex receive for IPv6 | MSP_ENDPOINT_RTPIN_VIDEO_H263_V6
H.263 simplex send for IPv6 | MSP_ENDPOINT_RTPOUT_VIDEO_H263_V6
H.264 full-duplex for IPv6 | MSP_ENDPOINT_RTPFDX_VIDEO_H264_V6
H.264 simplex receive for IPv6 | MSP_ENDPOINT_RTPIN_VIDEO_H264_V6
H.264 simplex send for IPv6 | MSP_ENDPOINT_RTPOUT_VIDEO_H264_V6

## MUX endpoint type

The following table lists the MUX endpoint type, along with its identifier and initialization structure.

Note: This endpoint is Video Access-specific.

Endpoint type | Identifier | Initialization structure
H.223 MUX/DEMUX | MSP_ENDPOINT_MUX | MUX_ENDPOINT_ADDR

## Example

Create all endpoints using mspCreateEndpoint. For example:

ret = mspCreateEndpoint(GwConfig[i].MuxEp.ctahd,
&GwConfig[i].MuxEp.Addr,
&GwConfig[i].MuxEp.Param,
&GwConfig[i].MuxEp.hd);

For more information about mspCreateEndpoint, see the MSPP Service Developer's Reference Manual.