Rejecting a Newly-Available Bearer

This tutorial explains how to set the mobility policy handler component to reject a newly-available 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. To reject the newly available bearer should be rejected, call theCImMobilityManager::IgnoreNewCarrier() function on the instance of CImMobilityManager identified in the PreferredCarrierAvailable() function.