# Export and Import Trunk DIDs/DDIs Numbers

A DID (Direct Inward Dialing) number, also called a DDI (Direct Dialing In) in some regions, is a phone number that routes an outside caller straight to a destination on your phone system. These numbers are attached to a trunk, which is the connection between Cloud Voice and your carrier that carries calls in and out.

You can write every DIDs/DDIs number on a trunk out to a CSV (comma-separated values) file and load numbers back in the same way. Exporting gives you a ready-made template you can edit offline, and importing lets you apply a large batch of numbers at once instead of adding them one by one.

## Export all DIDs/DDIs numbers

Exporting produces a single CSV file containing every DIDs/DDIs number currently on the trunk. Use it as a snapshot to keep on hand, or as the starting point for adding, removing, or changing entries in bulk.

1. Sign in to the PBX (your Cloud Voice phone system) web portal and open **Extension and Trunk > Trunk**, then open the trunk you want to work with for editing.
2. On the **DIDs/DDIs** tab, click **Export**.

The CSV file downloads to your computer. For the meaning of each column and the accepted values, see [Trunk DIDs/DDIs Parameters](/pbx/administrator-guide/import-and-export-parameters-trunk-dids-ddis-numbers/).

:::note
The export runs immediately with no confirmation prompt. If you do not see the file, check your browser's downloads folder. The file captures the trunk exactly as it is at that moment, so re-export whenever you want the latest numbers.
:::

## Import DIDs/DDIs numbers

:::tip
Export the trunk's current numbers first and edit that file. Starting from a real export saves you from formatting the columns yourself and keeps the layout the import expects.
:::

Before you import, make sure your file meets these requirements:

- **Format**: UTF-8 CSV
- **Size**: under 5 MB
- **File name**: fewer than 127 characters
- **Values**: every field must be valid. See [Trunk DIDs/DDIs Parameters](/pbx/administrator-guide/import-and-export-parameters-trunk-dids-ddis-numbers/) for the rules each column follows.

:::caution
The import will fail if the file breaks any of these limits: wrong encoding, over 5 MB, a name of 127 characters or more, or a field that does not match the parameter rules. Fix the file and try again if the import is rejected.
:::

To import the file:

1. Sign in to the PBX web portal and open **Extension and Trunk > Trunk**, then open the trunk you want to work with for editing.
2. On the **DIDs/DDIs** tab, click **Import**.
3. In the dialog that opens, click **Browse** and choose your CSV file.
4. Click **Import**.

The numbers from the CSV file now appear in the trunk's **DIDs/DDIs** list.
