To configure the server so that only messages from JIDs in the roster (i.e. subscription state 'to', 'from' or 'both') are delivers to the mobile device.
Make sure to document the XEP-0016 usage in transport-xmpp/documentation/supported_xmpp_features.org