---
updatedAt: 2025-01-31T02:00:42.000Z
agentTools:
  projectIndex: https://help.ttnc.co.uk/llms.txt
---

# 3CX - Setup guide

How to setup 3CX to work with a User-Based or IP-Based SIP Trunk

## Registering a User-Based SIP Trunk

This is a general guide for configuring TTNC SIP Trunks with 3CX. UI changes may occur between different versions, but it should be possible to use this guide for any recent installations of the software. This guide is based on version 16.

This guide assumes you have successfully installed 3CX and you have the following configured:

* You have configured an Administrative user
* You have created one or more extensions that are registering correctly

Navigate to SIP Trunks\
Click `+ Add SIP Trunk`\
Under `Add SIP Trunk/VoIP Provider`, set the following:

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Select Country
      </td>

      <td style={{ textAlign: "left" }}>
        Generic
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Select Provider in your Country
      </td>

      <td style={{ textAlign: "left" }}>
        Generic SIP Trunk
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Main Trunk No
      </td>

      <td style={{ textAlign: "left" }}>
        The outbound CLI configured on your Trunk
      </td>
    </tr>
  </tbody>
</Table>

Under `Trunk Details`, set the following:\
These details are found in myTTNC.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Enter the name for Trunk
      </td>

      <td style={{ textAlign: "left" }}>
        Endpoint nickname
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Registrar/Server/Gateway Hostname or IP
      </td>

      <td style={{ textAlign: "left" }}>
        Domain / Outbound Proxy
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Outbound Proxy
      </td>

      <td style={{ textAlign: "left" }}>
        Domain / Outbound Proxy
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Number of SIM Calls
      </td>

      <td style={{ textAlign: "left" }}>
        You can specify this value
      </td>
    </tr>
  </tbody>
</Table>

Under `Trunk Details`, set the following:\
These details are found in myTTNC.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Type of Authentication
      </td>

      <td style={{ textAlign: "left" }}>
        Register/Account-Based
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Authentication ID (aka SIP User ID)
      </td>

      <td style={{ textAlign: "left" }}>
        Username
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Authentication Password
      </td>

      <td style={{ textAlign: "left" }}>
        Password
      </td>
    </tr>
  </tbody>
</Table>

***

## Registering an IP-Based SIP Trunk

This is a general guide for configuring TTNC SIP Trunks with 3CX. UI changes may occur between different versions, but it should be possible to use this guide for any recent installations of the software. This guide is based on version 16.

This guide assumes you have successfully installed 3CX and you have the following configured:

* You have configured an Administrative user
* You have created one or more extensions that are registering correctly

Navigate to SIP Trunks\
Click `+ Add SIP Trunk`\
Under `Add SIP Trunk/VoIP Provider`, set the following:

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Select Country
      </td>

      <td style={{ textAlign: "left" }}>
        Generic
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Select Provider in your Country
      </td>

      <td style={{ textAlign: "left" }}>
        Generic SIP Trunk
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Main Trunk No
      </td>

      <td style={{ textAlign: "left" }}>
        The outbound CLI configured on your Trunk
      </td>
    </tr>
  </tbody>
</Table>

Under `Trunk Details`, set the following:\
These details are found in myTTNC.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Enter the name for Trunk
      </td>

      <td style={{ textAlign: "left" }}>
        Endpoint nickname
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Registrar/Server/Gateway Hostname or IP
      </td>

      <td style={{ textAlign: "left" }}>
        Domain / Outbound Proxy
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Outbound Proxy
      </td>

      <td style={{ textAlign: "left" }}>
        Domain / Outbound Proxy
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Number of SIM Calls
      </td>

      <td style={{ textAlign: "left" }}>
        You can specify this value
      </td>
    </tr>
  </tbody>
</Table>

Under `Trunk Details`, set the following:

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Type of Authentication
      </td>

      <td style={{ textAlign: "left" }}>
        Do not require - IP Based
      </td>
    </tr>
  </tbody>
</Table>

***

## Configuring a DID Inbound Rule

Navigate to Inbound Rules\
Click `+ Add DID Rule`

Under `General`, give the rule a name to help identify it.\
Select the `DID/DDI` from the dropdown.

Under `Route calls to`, set the following:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Destination for calls during office hours
      </td>

      <td style={{ textAlign: "left" }}>
        Extension
      </td>

      <td style={{ textAlign: "left" }}>
        Select the extension
      </td>
    </tr>
  </tbody>
</Table>

***

## Configuring a CID Inbound Rule

Navigate to Inbound Rules\
Click `+ Add CID Rule`

Under `General`, give the rule a name to help identify it.\
Enter the Caller ID from which you'd like to filter inbound calls.

Under `Choose a SIP Trunk` to link to this Inbound rule, select the necessary SIP Trunk.

Under `Route calls to`, set the following:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Destination for calls during office hours
      </td>

      <td style={{ textAlign: "left" }}>
        Extension
      </td>

      <td style={{ textAlign: "left" }}>
        Select the extension
      </td>
    </tr>
  </tbody>
</Table>

***

## Configuring an Outbound Route

Navigate to `Outbound Routes`\
Click `+ Add`

Under `General`, give the rule a name to help identify it.

Under `Apply this rule to these calls`, set the following:

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Calls to numbers starting with prefix
      </td>

      <td style={{ textAlign: "left" }}>
        0
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Calls from extension(s)
      </td>

      <td style={{ textAlign: "left" }}>
        Enter the extension numbers which will use this outbound rule
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Calls to Numbers with a length of
      </td>

      <td style={{ textAlign: "left" }}>
        9-14
      </td>
    </tr>
  </tbody>
</Table>

Under `Make outbound calls on`, set the following:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>

      <th style={{ textAlign: "left" }}>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Route
      </td>

      <td style={{ textAlign: "left" }}>
        1
      </td>

      <td style={{ textAlign: "left" }}>
        Select your Trunk
      </td>
    </tr>
  </tbody>
</Table>