Configuration FreePBX

From Wiki peoplefone (english)
Jump to: navigation, search

Requirements

General information

In this article, we will explain how you can configure a trunk and an administration line to peoplefone on the FreePBX. For this you need access to the web interface of your FreePBX. With two phones (VoIP phones, hardware phones), you can test the configuration of your telephone system. To enable incoming calls to be tested, you need one or more target numbers, which you can either purchase from your customer account (buy national numbers) or request via the support.

Test environment

This guide was created based on a FreePBX 32bit and 64bit Full installation version 10.13.66 with Asterisk 11. Since Asterisk 13 is still faulty (as of 09.12.2016), this should be used only for test purposes and not operationally.

We recommend using the FreePBX behind a firewall for security reasons. For this reason, we disabled the internal firewall of the FreePBX, switched off NAT and assigned the public IP address.

The FreePBX installation was done as follows:

  • With a fixed internal IP address (IPv4)
  • IPv6 has been deactivated
  • Default Network (local / 24)
  • Default Gateway (firewall)
  • DNS (Google)
  • Recommended firewall settings

Images STABLE FreePBX Linux 6.6 • Asterisk 11 or 13
10.13.66-64bit / Release Date: 2016
10.13.66-32bit / Release Date: 2016

Basic configuration

General SIP Settings

FreePBX Webinterface → Settings → Asterisk SIP Settings → General SIP Settings

General SIP Settings 1.PNG

  • Audio Codecs order alaw, ulaw, g722, g729

General SIP Settings 2.PNG




Chan SIP Settings

FreePBX Webinterface → Asterisk SIP Settings → Chan SIP Settings

Chan SIP Settings.PNG

  • Set NAT to no
  • IP Configuration Public IP

NAT Settings.PNG


Trunk creation

FreePBX Webinterface → Connectivity → Trunks → Add Trunk

  • Add a «SIP (chan_sip) trunk».

Add Chan SIP Trunk.PNG


FreePBX Webinterface → Connectivity → Trunks → General

Chan SIP Trunk General.PNG

  • Define your brand name

Chan SIP Trunk AddTrunk.PNG


Trunk Dialed Number Manipulation Rules

FreePBX Webinterface → Connectivity → Trunks → Dialed Number Manipulation Rules

Chan SIP Trunk DialedNumberManipulationRules1.PNG

  • For match pattern, use «.»

links




Trunk SIP Settings Outgoing

FreePBX Webinterface → Connectivity → Trunks → SIP Settings → Outgoing

Chan SIP Trunk SIP Settings Outgoing.PNG

  • Define a trunk name and specify the PEER details

Chan SIP Trunk TrunkName.PNG

  • Set the PEER details

Chan SIP Trunk SIP PeerDetails.PNG


host=sip.peoplefone.ch
username=SIP Username
secret=SIP Passwort
port=5060
type=friend
insecure=invite,port

Trunk SIP Settings Incoming

FreePBX Webinterface → Connectivity → Trunk → SIP Settings → Incoming

Chan SIP Trunk SIP Settings Incoming.PNG

  • In the USER context, enter the SIP username

Chan SIP Trunk USER Context.PNG

User Details:
host=sip.peoplefone.ch
type=friend
insecure=port,invite
dissallow=all
allow=ulaw
context=from-trunk

Register String:
sipUsername:sipPassword@sip.peoplefone.ch/sipUsername


Extensions

FreePBX Webinterface → Applications → Extensions → Add Extension

  • Add a new Chan_SIP extension

Application Extension AddExtension.PNG

FreePBX Webinterface → Applications → Extensions → General

  • Add a user extension
  • Set the display name for this extension
  • Set an outbound CID / phone number
  • A secret / password is automatically generated for you, this is required during the terminal configuration (SNOM Web Interface) and entered in the Password field.

Application Extension DispName OutboundCID Secret.PNG


Inbound Routes

FreePBX Webinterface → Connectivity → Inbound Routes → General


Application InboundRoutes AddRoute.PNG

  • Add an inbound route


Application InboundRoutes General.PNG

  • Define a name for the inbound route

Application InboundRoutes Name.PNG

  • Define a destination where the call is to be delivered.

Application InboundRoutes SetDestination.PNG

Outbound Routes

Outbound Route Settings

FreePBX Webinterface → Connectivity → Outbound Routes → Route Settings

Application OutboundRoutes RouteSettings.PNG

  • Define a name for the outbound route

Application OutboundRouteName.PNG

Outbound Dial Patterns

FreePBX Webinterface → Connectivity → Outbound Routes → Dial Patterns

links

  • For match pattern, use «X.».

Application OutboundRoute MatchPattern.PNG


FreePBX Webinterface → Connectivity → Outbound Routes → Dial Patterns

  • Define which trunk the connection should be made.

Application OutboundRoute TrunkSequence.PNG


Terminal configuration

SNOM Webinterface

  • As display name, you can enter something which is then displayed on the devices.
  • For an account, you must enter the user extension.
  • Use the automatically generated "Secret"
  • At the Registrar you enter the domain or the IP address of your telephone system, the port must also be entered.

SNOM Login.PNG


  • As codec, please place the following in the same order: pcma, pcmu, g722, g729, telephone-event
  • RTP Encryption is not supported and must be turned off.

SNOM RTP.PNG