Creating a channel

Create a channel for the 3G-324M Interface by using mspCreateChannel. The video and audio channel types that you can create for the Interface are described in the following table. All of the channel types use the MSP_CHANNEL_ADDR and the MSP_CHANNEL_PARAMETER initialization structures.

Video channel types

The following table lists the video channel types that can be used in the 3G-324M Interface, along with their associated identifiers. All of these channel types and identifiers are video-specific.

Channel type

Identifier

Video MPEG-4 full-duplex

MGVideoChannel

Video MPEG-4 simplex receive

MGVideoChannelInSimplex

Video MPEG-4 simplex send

MGVideoChannelOutSimplex

Video H.263 full-duplex

MGH263VideoChannel

Video H.263 simplex receive

MGH263VideoChannelInSimplex

Video H.263 simplex send

MGH263VideoChannelOutSimplex

Video H.264 full-duplex

MGH264VideoChannel

Video H.264 simplex receive

MGH264VideoChannelInSimplex

Video H.264 simplex send

MGH264VideoChannelOutSimplex

Audio channel types

The following table lists the audio channel types most likely to be used in the 3G-324M Interface, and provides their associated identifiers.

Channel type

Identifier

G.723 bypass full-duplex

MGG723BypassChannel

G.723 bypass simplex receive

MGG723BypassChannelInSimplex

G.723 bypass simplex send

MGG723BypassChannelOutSimplex

AMR bypass full-duplex

MGAMRBypassChannel

AMR bypass simplex receive

MGAMRBypassChannelInSimplex

AMR bypass simplex send

MGAMRBypassChannelOutSimplex

AMR channel (for AMR transcoding) full-duplex

MGAMRChannel

AMR channel (for AMR transcoding) simplex encoding (direction to terminal)

MGAMRChannelEncodeSimplex

AMR channel (for AMR transcoding) simplex decoding (direction from terminal)

MGAMRChannelDecodeSimplex

G.711 channel (for AMR transcoding) full-duplex

G711FullDuplex

G.711 channel (for AMR transcoding) simplex receive

G711EncodeSimplex

G.711 channel (for AMR transcoding) simplex send

G711DeodeSimplex

Example

The following example shows how to create a video channel:

GwConfig[i].VidChan.Addr.channelType            = MGVideoChannel;
GwConfig[i].VidChan.Param.channelType           = MGVideoChannel;
ret = mspCreateChannel( GwConfig[i].VidChan.ctahd,
&GwConfig[i].VidChan.Addr,
&GwConfig[i].VidChan.Param,
&GwConfig[i].VidChan.hd);

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