Menu Close

FreePBX

In this article we will show you how to connect the FreePBX to your peoplefone SIP trunk.

FreePBX Dashboard

Log in to your FreePBX as an administrator.

Connecting the SIP trunk to the FreePBX

Read out SIP data

Read SIP credentials from the SIP setup: SIP-Setup / SIP-Credentials

Add SIP trunk

Click on «Connectivity». Select «Trunks» to access the settings for the trunk.

Once you are in «Trunks», follow the next step. Click on the button and then on the selection «SIP (chan_pjsip) trunk», as shown in the image below.

General

Enter any name for your peoplefone trunk in the «Trunk Name» field.

Manipulation role

In the field named «match pattern», enter the following sign «.».

pjsip Settings

Please copy the following information from your SIP-Setup / SIP-Credentials:

Username: SIP Username
Auth Username: SIP Username
Secret: SIP Passwort
SIP Server: Registrar / Proxy (without “5060”)
SIP Server Port: 5060

Codecs

  • alaw (pcma)
  • ulaw (pcmu)
  • g722
  • g729
  • opus (only works from peoplefone to peoplefone)

Setting up extensions

In the Applications menu, click on Extensions.

Add a «chan_pjsip-Nebenstelle».

Extensions «General»

Give the extension an internal number. Specify which display name the extension should have.
Enter the number to be signalled outgoing here (Outbound CID). The secret is generated by the PBX itself and must be used to configure the device.

Routes

In the Connectivity menu, click on Inbound Routes.

Inbound Routes

Add an inbound route. Define a name for the inbound route.

Here you can select the desired destination, in our example the call is made directly to the extension.

Outgoing route

In the Connectivity menu, click on Outbound Routes.

Give the route a name.

Define the trunk with which the connection for outgoing calls should be made.

Match pattern

Use the following for the match pattern «X.»

Configuration of a device

Connect softphone

Domain:
Enter the domain or IP address of your FreePBX.

Username:
Insert the extension number

Password:
Use the automatically generated Password „Secret“


Connect SIP phone

Label / Display Name:
You can configure the name that is displayed on the devices.

Username / Register name:
Configure the extension of the requested user.

Password:
Use the automatically generated password “Secret”.

Server Host:
Set the domain or IP address of your telephone system, the port must also be filled.