Notifying the Availability of a Preferred Bearer

This tutorial explains how the mobility policy plug-in component can receive notification about the availability of a preferred bearer.

Procedure

  1. Derive a class from the CImMobilityPolicyPlugin class.

  2. Implement the PreferredCarrierAvailable and MigrationComplete functions in the derived CImMobilityPolicyPlugin class to get the required behaviour when a new bearer is available.

    When a new bearer is available, the Network bearer mobility framework calls the MMobilityProtocolResp::PreferredCarrierAvailable function to notify the bearer mobility policy manager. This happens only if the bearer mobility policy manager is registered with the PreferredCarrierAvailable (Network bearer mobility framework) for bearer mobility notification.

  3. In the PreferredCarrierAvailable function, set the policy decision and call either of the following functions:

    1. MImMobilityPolicyHandler::AcceptNewCarrier()

    2. MImMobilityPolicyHandler::IgnoreNewCarrier()