Parsing a Bearer Control Message

Use the bcfParseBearerControlMessage function to parse a Bearer Control Message into a Bearer Control Event structure:

DWORD bcfParseBearerControlMessage (
                  U8 *inBuf,
                  U32 inBufSize,
                  tMimeType ipbcpMimeType,
                  SiBearerControlEvnt *outBearerControl)

This function fills the Bearer Control Event structure and allows the application to access the information element fields from the received Bearer Control message.

After parsing a Bearer Control Message, use the following macros to figure out the received message type:

If the received Bearer message is a Bearer Setup Request or a Bearer Setup Answer message, the application can use the bcfInitIpbcpParam function:

DWORD bcfInitIpbcpParam (
                  IPBCP_PARAM *ipbcpParam
SiBearerControlEvnt *bearerControlEvnt)

To retrieve the following IPBCP/SDP parameters: