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:
BCF_IS_FAST_FORWARD_BEARER_SETUP_REQUEST
BCF_IS_FAST_FORWARD_BEARER_SETUP_ANSWER
BCF_IS_DELAYED_FORWARD_BEARER_INFO_REQUEST
BCF_IS_DELAYED_FORWARD_BEARER_INFO_ANSWER
BCF_IS_DELAYED_FORWARD_BEARER_SETUP_REQUEST
BCF_IS_DELAYED_FORWARD_BEARER_SETUP_ANSWER
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:
payloadType of the RTP media stream
Source and sink IP address of the RTP media stream
Source and sink UDP Port of the RTP media stream
Supported packetization time