Creating the MUX endpoint

Create the MUX endpoint for the 3G-324M Interface by using mspCreateEndpoint with the MSP_ENDPOINT_MUX identifier. This identifier is used in the eEpType field in the MUX_ENDPOINT_ADDR structure and in the eParmType field in the MUX_ENDPOINT_PARMS structure.

The following example shows how to declare that an endpoint is a MUX endpoint and how to set its timeslot:

GwConfig[i].MuxEp.Addr.eEpType          = MSP_ENDPOINT_MUX;
GwConfig[i].MuxEp.Addr.EP.Mux.nTimeslot = 5;
GwConfig[i].MuxEp.Param.eParmType       = MSP_ENDPOINT_MUX;
ret = mspCreateEndpoint(GwConfig[i].MuxEp.ctahd,
                        &GwConfig[i].MuxEp.Addr,
                        &GwConfig[i].MuxEp.Param,
                        &GwConfig[i].MuxEp.hd);

Note: The application does not need to interpret MUX unsolicited events, because these events are consumed by the H.324M Middleware. For more information, see h324SubmitEvent.