IN THIS ARTICLE

Asterisk SIP Trunk Configuration

Incorrect email!

The article was successfully sent to the email

Summary

Step-by-step guide for configuring a SIP Trunk connection between Asterisk 10/13 (FreePBX) and TRBOnet, including trunk creation, outbound route setup, SIP settings, and TRBOnet integration.

Prerequisites

AsteriskNOW is the premier, ready-to-run distribution of open source Asterisk.
It is distributed as ISO image that installs Linux, Asterisk and the FreePBX GUI in a single, simple install.
Installation instructions located on official web site www.asterisk.org.
Prerequisite for this guide is installed and running Asterisk 10/13.

Opening FreePBX Administration

1. Start an internet browser and open FreePBX GUI web page, click on FreePBX Administration icon (requires login and password set during installation).
FreePBX Administration icon

Setting up Trunk in Asterisk

2. Go to menu ConnectivityTrunks.
Connectivity - Trunks menu

Add SIP (chan_sip) Trunk:

Add SIP Trunk

Assign a name to newly created Trunk:

Trunk name assignment
3. Go to sip SettingsOutgoing, set IP address of TRBOnet server.
SIP Settings Outgoing - TRBOnet IP

Click OK in pop-up window about absence of CID.

Adding a Route in Asterisk

4. Go to Outbound Routes under Connectivity menu.
Outbound Routes menu

Add Outbound Route:

Add Outbound Route

Assign a name to created route:

Route name assignment
5. Go to Dial Patterns tab and set desired dial pattern (on the example all numbers matching pattern xxxx will be forwarded to TRBOnet in our example all Subscribers have 4 digits Radio ID, hence we are setting pattern to xxxx, 4 digits).
Dial Patterns configuration

Asterisk SIP Settings

6. Go to menu SettingsAsterisk SIP Settings.
Asterisk SIP Settings menu

Set Allow Anonymous Inbound SIP calls to Yes:

Allow Anonymous Inbound SIP calls
7. Go to Chan SIP Settings.
Chan SIP Settings

Set Bind Port to desired (on example is the default port used in TRBOnet 5060):

Bind Port configuration
8. Apply config.

Hooking up TRBOnet to Asterisk Trunk

9. Configure TRBOnet for SIP trunk, input PBX IP address and port, choose local IP address you set in step 3 and Local Port.
TRBOnet SIP Trunk configuration
10. In advanced settings set tick "Do not register users on PBX server (SIP Trunk)".
Advanced settings - Do not register users

Helpful?
We're glad this article helped.

Thanks for letting us know. What went wrong?