# Provision an NEC IP Phone

Auto provisioning lets Cloud Voice hand a phone its full configuration from the server, so nothing has to be typed in by hand on the handset. NEC phones find that configuration through DHCP (Dynamic Host Configuration Protocol) option 66, which means provisioning has two parts: you add the phone in Cloud Voice, then point your DHCP server at the location where the phone should collect its files. The example below uses an NEC DT900 ITK-12D-1P (firmware 05.03.04.03); the same procedure applies to the other supported models.

:::caution
Because of a limitation on the phone side, NEC provisioning only works when your Cloud Voice domain name is **29 characters or fewer**, not counting the `https://` prefix. Provisioning fails on any domain longer than that.
:::

## Supported models and firmware

Check that both the phone and Cloud Voice meet the minimum firmware versions below before you begin.

| Model | Phone firmware | Cloud Voice version |
|-------|----------------|---------------------|
| DT700 ITL-2E-1P | 03.01.64.00 or later | 84.17.0.53 or later |
| DT700 ITL-6DE-1P | 03.01.64.00 or later | 84.17.0.53 or later |
| DT700 ITL-12D-1P | 03.01.64.00 or later | 84.17.0.53 or later |
| DT700 ITL-24D-1P | 03.01.64.00 or later | 84.17.0.53 or later |
| DT700 ITL-8LD-1P | 03.01.64.00 or later | 84.17.0.53 or later |
| DT700 ITL-8LDE-1P | 03.01.64.00 or later | 84.17.0.53 or later |
| DT700 ITL-12DG-3P | 03.01.64.00 or later | 84.17.0.53 or later |
| DT700 ITL-12CG-3P | 03.01.64.00 or later | 84.17.0.53 or later |
| DT820 ITY-6D-1P | 04.04.28.14 or later | 84.17.0.53 or later |
| DT820 ITY-8LDX-1P | 04.04.28.14 or later | 84.17.0.53 or later |
| DT820 ITY-8LCGX-1P | 04.04.28.14 or later | 84.17.0.53 or later |
| DT820 ITY-6DG-1P | 04.04.28.14 or later | 84.17.0.53 or later |
| DT820 ITY-32LDG-1P | 04.04.28.14 or later | 84.17.0.53 or later |
| DT820 ITY-32LCG-1P | 04.04.28.14 or later | 84.17.0.53 or later |
| DT900 ITK-6D-1P | 05.03.04.99 or later | 84.17.0.53 or later |
| DT900 ITK-12D-1P | 05.03.04.03 or later | 84.17.0.53 or later |
| DT900 ITK-8LCX-1P | 05.03.04.99 or later | 84.17.0.53 or later |
| DT900 ITK-8TCGX-1P | 05.03.04.99 or later | 84.17.0.53 or later |
| DT900 ITK-6DG-1P | 05.03.04.99 or later | 84.17.0.53 or later |
| DT900 ITK-12DG-1P | 05.03.04.99 or later | 84.17.0.53 or later |
| DT900 ITK-32LCG-1P | 05.03.04.99 or later | 84.17.0.53 or later |
| DT900 ITK-32TCG-1P | 05.03.04.99 or later | 84.17.0.53 or later |
| DT900S ITK-6DGS-1P | 05.03.04.99 or later | 84.17.0.53 or later |
| DT900S ITK-32LCGS-1P | 05.03.04.99 or later | 84.17.0.53 or later |
| DT900S ITK-32TCGS-1P | 05.03.04.99 or later | 84.17.0.53 or later |

## Before you start

- Have a DHCP server running on the same subnet as the phone so it can lease the phone an IP address.

  :::note
  Only one DHCP server may be active on the subnet. If a second one is running, the phone can't obtain an address.
  :::

- If the phone has been used before, factory-reset it first.

  :::caution
  A factory reset erases the phone's current settings and unregisters whatever extension it was using. If the handset is still in service, resetting it drops its active calls and takes it offline, so only reset a phone you are sure is free to reconfigure.
  :::

- Collect the phone's details: vendor, model, and MAC (Media Access Control) address. The MAC address is the phone's unique hardware ID, usually printed on a label on the underside of the handset.
- Download the default auto provisioning template for your phone model. The templates live under **Auto Provisioning > Resource Repository > Default Templates**.

## Step 1: Add the NEC phone in Cloud Voice

Adding the phone generates a configuration file keyed to its MAC address.

1. Sign in to the Cloud Voice web portal and go to **Auto Provisioning > Phones**.
2. Click **Add > Add**.
3. In the **IP Phone** section, fill in the phone's details.

   ![Adding an NEC phone by vendor, model, and MAC address](/images/pbx/add-nec-phone.png)

   - **Vendor**: Choose **NEC**.
   - **Model**: Pick your phone model. This example uses **DT900 ITK-12D-1P**.
   - **MAC Address**: Type the phone's MAC address.

4. In the **Options** section, set the following.

   ![Template and provisioning link options for an NEC phone](/images/pbx/nec-phone-option-cloud.png)

   - **Template**: Select a template from the drop-down list.

     :::note
     Use the default template that matches your phone model, or build your own custom auto provisioning template.
     :::

   - **Provisioning Link**: This link is generated automatically and points to where the phone's configuration file is stored.

     :::note
     Make a note of the provisioning link. You'll need it when you configure DHCP option 66 in Step 2.
     :::

5. In the **Assign Extension** section, assign an extension to the phone.

   ![Assigning an extension to the phone during provisioning](/images/pbx/assign-an-extension-pnp.png)

   :::tip
   If the extension you want isn't in the drop-down list, it's already tied to another IP phone. You have two ways to free it up:

   - Release the extension from the phone it's currently associated with.
   - Enable concurrent registration for that extension, which lets it register on more than one device. By default, Cloud Voice permits an extension to register with only one SIP (Session Initiation Protocol) endpoint, meaning one device or app.
   :::

6. Click **Save**. The phone now appears in the Auto Provisioning phone list.

## Step 2: Configure DHCP option 66

Option 66 tells the NEC phone where to reach Cloud Voice so it can retrieve its configuration files on its own. The steps below use the Tftpd64 DHCP server as an example.

1. In Tftpd64, go to **Settings > DHCP > DHCP Options**.
2. Set the following options.

   ![DHCP options dialog with the NTP server and option 66 set](/images/pbx/nec-option-66-cloud.png)

   - **NTP server (Opt 42)**: Enter the IP address of an NTP (Network Time Protocol) server, which keeps the phone's clock accurate.
   - **Additional Option**: Enter `66`, then enter the provisioning link you noted in Step 1.

3. Click **OK** to save.

## Result

- When the phone reboots, it leases an IP address from the DHCP server, downloads its configuration from Cloud Voice over the provisioning link, and applies the settings automatically.
- The extension registers successfully on the phone. To confirm, check the registration status under **Auto Provisioning > Phones** in the web portal.

  ![Auto provisioning list showing the NEC phone with a registered extension](/images/pbx/nec-phone-register-ok.png)
