Skip to content

Provision a Grandstream FXS Gateway with Cloud Voice

Cloud Voice can auto-provision Grandstream FXS (Foreign Exchange Station) gateways, the devices that provide the analog phone jacks, so the analog phones plugged into their ports come online as extensions without manual per-device setup. This page uses a Grandstream HT802 (firmware 1.0.63.3) as the working example, but the same workflow applies to the other supported models.

Confirm that your gateway is running a supported firmware version before you begin.

ModelGateway firmwareCloud Voice requirement
GXW42161.0.23.4 or later84.6.0.24 or later
GXW42241.0.23.4 or later84.6.0.24 or later
GXW42321.0.23.4 or later84.6.0.24 or later
GXW42481.0.23.4 or later84.6.0.24 or later
HT8011.0.63.3 or later84.6.0.24 or later
HT8021.0.63.3 or later84.6.0.24 or later
HT8121.0.5.10 or later84.6.0.24 or later
HT8141.0.63.3 or later84.6.0.24 or later
HT8181.0.63.3 or later84.6.0.24 or later
  • Run a third-party DHCP (Dynamic Host Configuration Protocol) server on the same subnet as the gateway so the device can lease an IP address.
  • Download the auto-provisioning template for your model in advance, under Auto Provisioning > Resource Repository > Default Templates.
  • If the gateway has been used before, reset it to factory defaults, then give it an IP address.
  • Collect the gateway’s vendor, model, and MAC (Media Access Control) address. The MAC address is the unique hardware identifier printed on a label on the device.

Provisioning takes two stages:

  1. Add the Grandstream gateway in Cloud Voice, which builds a configuration file keyed to the device’s MAC address.
  2. Point the gateway at that configuration by publishing the provisioning link through DHCP option 66.

Adding the gateway generates a configuration file based on its MAC address.

  1. Sign in to the PBX (Private Branch Exchange) web portal and open Auto Provisioning > Phones.

  2. Click Add > Add.

  3. In the IP Phone section, fill in the device details.

    Add-device form with vendor, model, and MAC address fields for a Grandstream gateway

    • Vendor: Select Grandstream.
    • Model: Select your model. This example uses HT802.
    • MAC Address: Enter the gateway’s MAC address.
  4. In the Options section, set the following.

    Cloud Voice, Options section showing the template selector and the auto-generated provisioning link

    • Template: Choose a template from the drop-down list.
    • Provisioning Link: A link is generated automatically. It points to where the gateway’s configuration file is stored.
  5. In the Assign Extension section, map extensions to the handsets you want to enable. Assigned extensions bind to the gateway’s FXS ports, so the analog phones on those ports place and receive calls using those extension numbers.

    • To assign extensions individually, select a handset’s checkbox and pick an extension from the Extension drop-down.

      Assigning a single extension to one handset row via the Extension drop-down

    • To assign extensions in bulk, set a range with the Start Extension and End Extension drop-downs, then click Assign Extension. The handsets are enabled automatically and filled with available extensions in order.

      Bulk extension assignment using start and end extension range fields

  6. Optional: In the Preference section, change the value in Admin Phone Password if you want a different gateway admin password.

    Preference section with the Admin Phone Password field

  7. Click Save.

Publish the provisioning link through option 66 on the DHCP server that serves the gateway’s subnet.

  1. In the PBX web portal, open the gateway’s detail page and copy its provisioning link.

    Cloud Voice, gateway detail page with the provisioning link ready to copy

  2. On the third-party DHCP server, create option 66 and set its value to the provisioning link. The example below shows a typical configuration.

    Cloud Voice, DHCP server option 66 configured with the provisioning link value

  • Reboot the gateway manually. On startup it leases an IP address from the DHCP server, pulls its configuration from Cloud Voice over the provisioning link, and applies the settings on its own.

  • The extensions register through the gateway. Confirm their status under Auto Provisioning > Phones in the PBX web portal.

    Auto Provisioning phone list showing the Grandstream gateway provisioned and registered