You are here: Integration > External and local policy > Enabling local policy

Enabling local policy

Local policy allows you to manipulate service configuration and media location data (that has been provided either via the external policy API, or has been retrieved from Pexip Infinity's own database) by running a jinja2 script against that data.

Local policy currently has a more limited scope in what it can control than external policy, but is easier to implement and runs locally on each Conferencing Node.

Configuring policy profiles for local policy

You can configure Pexip Infinity to use both external and local policy depending on your requirements. When both external and local policy are enabled, external policy is applied first to retrieve the configuration data from the external system, and then local policy is applied to that retrieved data (which can then conditionally modify that data). The flow chart (right) shows Pexip Infinity's standard processing logic when policy profiles are used and highlights where local policy is applied.

To configure Pexip Infinity to use local policy:

  1. Go to Call control > Policy profiles.
  2. Select Add Policy profile and then configure that profile:
    • Select Apply local policy for the types of configuration data (currently service configuration and media location data types only) that you want to modify via local policy.
    • In the Script text box, enter the jinja2 script that you want to execute against that data, and save your changes.

      See Writing local policy scripts for full information about how to construct your jinja2 scripts.

  3. Go to Platform configuration > Locations.
  4. Select each location in turn and specify the Policy profile that the Conferencing Nodes in that location should use when making policy decisions.

For more information on configuring policy profiles and how to combine external policy with local policy, see Configuring policy profiles.