Skip to main content

FusionPBX

FusionPBX is a FreeSWITCH-based multi-tenant PBX that provides a robust set of features for business phone systems. Using SignalWire services with FusionPBX allows you to leverage our high call quality and low rates.

Creating a SIP Endpoint

If you don't have a SIP endpoint set up already, the first step is to create a SIP Endpoint and connect it to a phone number.

FusionPBX GUI Set Up

From your FusionPBX installation's web GUI go to Accounts > Gateways.

The Gateways item under Accounts.

This is where you will use the credentials you created in the first step. Once you are in the Gateways section, click the ADD button in the top right corner.

Selecting the Add button in the Gateways section.

Enter the following information in the Gateway form:

Gateway: This is a label. In this example we will define this as signalwire
Username: Your username as created in the SIP endpoint on SignalWire
Password: The password you set above
Proxy: YOURSPACE-SIPDOMAIN.sip.signalwire.com (Replace with your proxy address)
Register: True

Proxy Address

The Proxy address and other SIP credentials can be found in the SignalWire dashboard by going to the SIP > SIP Settings tab as shown below.

Selecting the SIP Settings pane of the SIP tab.

Click the Advanced button to expand additional settings

  1. Register Transport: TLS (This can also be TCP but is better to be secure with TLS)
  2. Ping: 90
  3. Profile: internal
  4. Enabled: True Click save at the top right corner.

Your form should look similar to the following.

TLS

In order to use TLS on your FusionPBX installation, you must have SSL certificates like Let's Encrypt or others configured. You can find this detailed further in the FusionPBX member documentation.

A screenshot of the Gateway form. The Gateway name is set to signalwire. Username, password, and proxy are filled in with appropriate values. Expire seconds is set to 800. Register is set to True. Retry Seconds is set to 30. Under Advanced, the Context is set to Public and the Profile is set to Internal.

You should now have a gateway registered(REGED) as shown in the image below! If you don't see it yet, try clicking Start.

A screenshot of a table with gateways. The example gateway reads 'REGED' in the State column.

Making Outbound Calls over SignalWire

After the gateway is configured in your FusionPBX installation and registered, we can now configure an outbound route! Go to Dialplan > Outbound Routes and click the ADD button at the top right.

A screenshot of the Dialplan menu, with Outbound Routes selected.
Selecting the Add button.

Fill in the form with a few simple settings:

  1. Gateway: Select signalwire from the drop down list
  2. Dialplan Expression: Choose North America (This can be typed in manually or you can pick other areas also)

Check your form is similar to the following, and click Save.

Settings in the Outbound Routes form.

Recieving Inbound Calls over SignalWire

Go to Accounts > Extensions. Here you can create an extension. This is needed to point your registered peer to so you can receive calls.

Selecting the Extensions item in the Accounts menu.

Create an extension by clicking the Add button at the top right. In this example, we will create extension 900 and click Save at the top right.

Go to Dialplan > Destinations from your FusionPBX installation. We will now create an inbound route to connect the SignalWire peer and the extension you just created.

Selecting the Destinations item in the Dialplan menu.

Create a destination by clicking the +ADD button at the top right.

Selecting the Add button.

Fill in the form with the necessary information

  1. Destination: Your SignalWire phone number, with the +1 (eg. +15556677888)
  2. Caller ID Name: This is optional (also see the documentation for Caller ID settings on SignalWire)
  3. Caller ID Number: This is optional
  4. Actions: 900 (This is where the call will go to). The actions can be an extension, IVR, Time condition, etc.

Click the Save button at the top right, after checking your form looks similar to the following.

Form settings.

This next step is VERY important. This must be set in order to receive calls to your FusionPBX installation. In the menu, look for Advanced > Default Settings and click the Add button on the top right.

Selecting the Add button under Default Settings.

In the form, enter the following information:

  1. Category: dialplan
  2. Subcategory: destination
  3. Type: text
  4. Value: ${sip_to_user}
  5. Enabled: True
  6. Description: optional

Check the form looks similar to the following, then click Save. After saving, click the top right Reload button.

Selecting the Save button.

Access Control

The IPs are needed to make/receive calls, but they can change frequently. You can find the IPs by querying sip.signalwire.com. CIDR is used so IPs must be added with a x.x.x.x/32.

Windows
nslookup sip.signalwire.com

Mac/linux
dig sip.signalwire.com

You can add these in Advanced --> Access Controls --> Domains.

A screenshot of the Access Control page, with a list of nodes.

fail2ban

If you are using fail2ban to protect freeSWITCH, you can add SignalWire IPs directly to iptables via the linux command line!

Check out our article on how to allow SignalWire IPs through your firewall to learn more.