Back to top

Control phone use

Restrict data and voice

This topic describes how to control phone usage inside the container.

The customer has enrolled in a limited talk, text, and data plan, and wants to control the number of voice call minutes and text in the following manner:

  • Total incoming and outgoing calls should not exceed 2000 minutes in a calendar month.
  • Total SMS should not exceed 1000 in a calendar month.
  • Block all outgoing international calls (US and Canada calls are considered domestic).
  • Allow calls to emergency numbers only.

To control phone use on the device/container:

Get PhoneRestriction Policy object.

EnterpriseDeviceManager edm = EnterpriseDeviceManager.getInstance(context);        
PhoneRestrictionPolicy phoneResPolicy = edm.getPhoneRestrictionPolicy();

Total incoming and outgoing call number should not exceed 2000 minutes in a calendar month. The MDM Agent has to keep track of incoming and outgoing calls. The following policy applies a restriction on calls only for incoming/outgoing and does not represent a combined restriction.

phoneRestrictionPolicy.setLimitOfIncomingCalls(0, 0, 2000);
phoneRestrictionPolicy.setLimitOfOutgoingCalls(0, 0, 2000);

Total SMS should not exceed 1000 in a calendar month. The MDM Agent has to keep track of incoming and outgoing SMS. The following policy applies a restriction on SMS only for incoming/outgoing and does not represent a combined restriction.

phoneRestrictionPolicy.setLimitOfIncomingSms(0, 0, 1000);
phoneRestrictionPolicy.setLimitOfOutgoingSms(0, 0, 1000);

Block all international calls.

phoneResPolicy.setOutgoingCallRestriction("011.*");

Allow calls to emergency numbers only.

phoneRestrictionPolicy.setEmergencyCallOnly(true);

Is this page helpful?