Setup Guide
FreePBX Local SIP Setup for Linortek SIP Devices
Install a FreePBX phone server on your own network, create extensions, and register Linortek SIP speakers and paging gateways to it. Includes call routing, security and troubleshooting.
01Before You Start
FreePBX is a free web interface for Asterisk, a software phone system (PBX). It handles extensions, call routing, voicemail, trunks and the registration of SIP devices. This guide shows how to install FreePBX and register Linortek SIP devices to it.
Supported Linortek SIP Devices
| Device | Description |
|---|---|
| Netbell-AU-711-SIP | SIP paging gateway |
| Netbell-CM-600-SIP | 30 W PoE SIP ceiling speaker |
| Netbell-WM-042-SIP | 20 W PoE SIP wall speaker |
| Netbell-H30-709-SIP | 30 W PoE SIP horn speaker |
For the devices’ own settings, see the Netbell-SIP Speaker User Manual.
What You Need
- A computer for the server with a 64-bit Intel or AMD processor (x86-64). ARM computers such as the Raspberry Pi are not supported.
- The FreePBX ISO (installer image), from freepbx.org/downloads, on a USB drive.
- A fixed IP address for the server.
- Network access from every SIP device to the server.
- Basic networking knowledge: IP addresses, DHCP, DNS and NAT.
Use a dedicated computer. A virtual machine (VM) also works, but often causes network problems. If you use a VM, set its network adapter to Bridged mode, not NAT.
02Install the Server
The installer erases all disks in the computer, and any USB drive over 100 GB that is plugged in.
- Start the computer from the FreePBX USB drive.
- Choose Begin FreePBX 17 install, then the recommended Asterisk version.
- Let the installer set up the disk, Linux, Asterisk and FreePBX. It runs by itself for about 20 minutes and restarts twice.
- At the end, the installer shows the password for the sangoma user. Write it down. Without it you have to reinstall.
- When the computer restarts, remove the USB drive. If needed, set the computer to start from its hard drive first.
Log in to the server console with the user name sangoma and that password.
03Give the Server a Fixed IP Address
First write down the settings to use. Ask your IT department if you aren’t sure.
| Setting | Example |
|---|---|
| Server IP address | 172.16.10.250 |
| Subnet mask | 255.255.255.0 |
| Gateway (router) | 172.16.10.1 |
| DNS server | 8.8.8.8 |
- On the server console, open the network settings file:
- Under The primary network interface, change
dhcptostaticand add your settings, as below. Keep the interface name that is already in the file (herepbxeth0).
# The primary network interface
allow-hotplug pbxeth0
iface pbxeth0 inet static
address 172.16.10.250
netmask 255.255.255.0
gateway 172.16.10.1
dns-nameservers 8.8.8.8
- Save with Ctrl+O and Enter, then close with Ctrl+X.
- Restart the server:
- Check the connection by pinging an outside address:
04The FreePBX Admin Panel
- On a computer on the same network, open
http://<server IP>/admin, for examplehttp://172.16.10.250/admin. - The first time, create the admin user and finish the setup wizard.
- Change the admin password to a strong one if you used a simple one.
| Menu | Contains |
|---|---|
| Applications | Extensions, Ring Groups, IVR, Queues, Voicemail |
| Connectivity | Trunks, Inbound Routes, Outbound Routes |
| Settings | Advanced Settings, Asterisk SIP Settings |
| Admin | User Management, Module Admin, System Admin, Firewall |
| Reports | Asterisk Info, Asterisk Logfiles |
Changes are not live until you click the red Apply Config button at the top of the page. Do this after every change.
05SIP Settings
Open Settings › Asterisk SIP Settings and check:
| Setting | Enter |
|---|---|
| Local Networks | Your network, for example 172.16.10.0/24 |
| External Address | Only for devices outside your network: your public IP or a DDNS host name |
| SIP driver | PJSIP (the only driver in current Asterisk versions) |
| SIP port | 5060 UDP (5061 for TLS) |
| RTP port range (audio) | 10000–20000 UDP |
Click Submit, then Apply Config.
If devices connect from outside your network, forward the SIP port and the RTP port range on your router to the FreePBX server, and enter the External Address. When all devices are on your own network, you don’t need this.
06Create an Extension for Each Device
Every SIP device needs its own extension.
- Open Applications › Extensions and click Add Extension › Add New SIP [chan_pjsip] Extension.
- Enter the User Extension number, for example
2001, and a Display Name, for example Gym speaker. - Keep the generated Secret (password), or enter a strong one of 16 characters or more. Write it down; the device needs it.
- Turn voicemail off unless you need it.
- Click Submit, then Apply Config.
Plan your numbers before you start. For example:
| Numbers | Use |
|---|---|
| 100–199 | Desk phones |
| 200–299 | Softphones and mobile SIP apps |
| 300–399 | Conference rooms |
| 400–499 | Ring groups and queues |
| 2000 and up | Linortek SIP speakers and paging gateways |
07Register a Linortek SIP Device
- Connect the device to the network (PoE) and find its IP address, for example in your router’s DHCP list.
- Open the IP address in a browser, log in and open Sip Settings.
- Fill in the fields as in the table below and click Save.
- Check that the device is registered (see Check the Registration).
| Field on the device | Enter |
|---|---|
| User Account | The extension number, for example 2001 |
| Password | The extension’s Secret |
| Display Name | A name for the device |
| Server Address (Primary Server) | The FreePBX server’s IP address |
| Server Port | 5060 |
Check the Registration
- In FreePBX, open Reports › Asterisk Info and look at the Chan_PJSIP section. A registered extension shows an IP address and Avail.
- Or check Reports › Asterisk Logfiles for registration messages.
- On the device, the Overview or status page shows whether the account is registered.
Many Devices: Auto-Provisioning (Optional)
FreePBX’s Endpoint Manager module can send settings to supported devices automatically over TFTP or HTTP. Install it from Admin › Module Admin, create a template for each device model, assign the templates to extensions, and point the devices to the provisioning address. See the Endpoint Manager documentation for details.
08Outside Calls: Trunks and Routes
Only needed if the system should call, or be called from, outside phone numbers. You need an account with a VoIP provider.
| Where | What to set |
|---|---|
| Connectivity › Trunks › Add SIP (chan_pjsip) Trunk | A name, the provider’s server, your user name and password, the outbound caller ID and codecs, as the provider requires. |
| Connectivity › Inbound Routes | The DID (your phone number) and where calls to it go: an extension, ring group, IVR or voicemail. |
| Connectivity › Outbound Routes | Dial patterns (for example NXXNXXXXXX for 10-digit US numbers) and the trunk to use. With several trunks, set their order. |
09Security
- Firewall: turn on the FreePBX firewall (Admin › Firewall). Mark your own network as trusted and block everything else. Limit SSH access to known IP addresses.
- Passwords: use a long, unique Secret for every extension, and a strong admin password.
- Updates: keep modules up to date in Admin › Module Admin, and install Linux updates regularly.
- Unused features: turn off modules and services you don’t use.
10Testing and Troubleshooting
Tests
- Call one extension from another and check that audio works both ways.
- Page a Linortek speaker and check that it plays.
- If you set up a trunk, make an outside call and call in to your number.
Common Problems
| Problem | Check |
|---|---|
| Device doesn’t register | The Secret, server IP address and port on the device. That the device can reach the server, and that the FreePBX firewall trusts your network. |
| Audio only one way | NAT or firewall: the RTP port range and the External Address and Local Networks in the SIP settings. |
| Calls drop after about 30 seconds | Usually NAT; check the same settings as for one-way audio. |
| No outside calls | The outbound route’s dial pattern and the trunk’s login details. |
| No incoming calls | The inbound route’s DID and the trunk setup with the provider. |
| A change has no effect | Click Apply Config. |
11Reference
Useful Links
| What | Where |
|---|---|
| FreePBX admin panel | http://<server IP>/admin |
| Module Admin | http://<server IP>/admin/config.php?display=modules |
| FreePBX documentation | Sangoma FreePBX knowledge base |
| Asterisk documentation | docs.asterisk.org |
Keep a Record
Write these down when you set up the system and keep them in a safe place:
- Date installed, FreePBX version and Asterisk version
- Server IP address, the sangoma password and the admin login
- Each extension’s number, device, location and Secret
- VoIP provider and its SIP server, if you use a trunk
Need help? Contact Linortek tech support or call 336-485-6199.
Still stuck? Our support team can help with setup and configuration.
