# Connect Cloud Voice to a TA100/200 FXS Gateway

A TA100/200 FXS gateway lets you bring analog endpoints, such as desk phones or fax machines, onto Cloud Voice. FXS (Foreign Exchange Station) is the type of port an analog device plugs into. Each FXS port on the gateway registers to the PBX (Private Branch Exchange, the phone system) as a standard SIP (Session Initiation Protocol) extension, so the connected device behaves like any other phone on your system.

:::note[Why do this]
Analog phones and fax machines cannot join a cloud phone system on their own. The gateway acts as a translator: it presents each analog port to Cloud Voice as an ordinary extension. Once registered, the analog device can be dialed, transferred, and managed just like a softphone or IP desk phone.
:::

Linking the two sides takes two passes: first define the extension on Cloud Voice, then point an FXS port at it on the gateway.

## Step 1: Create the extension on Cloud Voice

Add a dedicated extension for the FXS port you plan to use. This example uses extension 1000.

1. Sign in to the PBX web portal and go to **Extension and Trunk > Extension**.
2. Click **Add** and create the extension.

   ![Adding a new extension in the Cloud Voice portal](/images/pbx/create-extension-pce.png)
3. Click **Save**, then **Apply**.

:::tip[Note these before you leave this screen]
Copy the extension's registration name and registration password now. You will type both into the gateway in Step 2, and it is faster than switching back and forth between the two web interfaces.
:::

## Step 2: Register the FXS port with the extension

On the gateway, bind an FXS port to the extension you just created.

1. Sign in to the gateway web interface and go to **Gateway > Port Settings > FXS Port**, then edit the port you want to use.
2. In the port window, set the following:
   - **Register Mode**: Select **Port Register**.
   - **Caller ID Name**: A label that helps you recognize this FXS port.
   - **Caller ID Number**: The extension number (1000 in this example).
   - **User Name**: The extension number.
   - **Authentication Name**: The extension's registration name.
   - **Password**: The extension's registration password.
   - **From User**: The extension number.
   - **DID Number**: The extension number. DID (Direct Inward Dialing) is the number tied directly to this port.
   - **Transport**: Select **UDP** (User Datagram Protocol, the transport SIP uses to carry the registration).
   - **Hostname/IP**: The PBX domain name followed by its SIP port.
   - **Domain**: The PBX domain name.

   ![FXS port registration settings on the gateway](/images/pbx/ta100-port-registration-pce.png)
3. Click **Save**, then **Apply Changes**.

:::caution[Easy fields to get wrong]
- **Authentication Name** is the extension's registration name, which is not the same as the extension number. Using the extension number here is the most common reason a port fails to register.
- **Hostname/IP** must include the SIP port, not just the domain name (for example, `pbx.example.com:5060`). Leaving off the port stops registration.
- **Transport** must match what the PBX expects on both ends. If the PBX side is not set to UDP, the port will not register.
:::

## Confirm the registration

Once the port registers, verify the connection from both sides.

- On the PBX web portal, open **Extension and Trunk > Extension**. A registered extension shows the SIP registration icon ![SIP registration icon](/images/pbx/SIP.png).

  ![Extension list showing a registered FXS extension](/images/pbx/extension-status-pbx.png)
- On the gateway, go to **Status > System Status > FXS Port Status**. A registered port reports **OK**.

  ![Gateway status page showing the FXS port registered](/images/pbx/port-status-gateway.png)

With the port registered, the analog phone attached to it can place and answer internal calls across your Cloud Voice system.

:::note[Internal calls only, for now]
At this stage the analog phone can reach other extensions on your system, but it cannot yet dial external numbers or receive calls from outside. Set up the outbound and inbound routes below to add external calling.
:::

## Next steps

- To let the analog phone dial external numbers through a trunk, see [Make Outbound Calls from an Analog Phone Connected to a TA100/200 FXS Gateway](/pbx/integrations/cloud-voice-ta100-ta200/make-outbound-calls-from-an-analog-phone-connected-to-cloud-voice-ta100-ta200-fxs-gateway/).
- To route incoming calls to the analog phone, see [Receive Inbound Calls on an Analog Phone Connected to a TA100/200 FXS Gateway](/pbx/integrations/cloud-voice-ta100-ta200/receive-inbound-calls-on-an-analog-phone-connected-to-cloud-voice-ta100-ta200-fxs-gateway/).
