Step 1 – Review Prerequisites:
Active UniTel SIP Services
FreePBX version 12 or newer. Settings taken for FreePBX 12.0.76.2
Step 2 – Collect Trunk authentication settings
Each trunk includes unique credentials for digest authentication.
Login to UniTel Customer Portal at www.unitelcustomer.com
Navigate to Settings > Trunks
Click the info button [Trunk Info] next to view the Trunks credentials. You will observe the Username, Passcode, and Domain. This information will be used in the PEER Details and REGISTER string
Step 3a - Add Trunk chan_pjsip
*Note: if you are creating chan_sip and NOT chan_pjsip trunks, skip ahead to Step 3b
Login to your FreePBX Admin page
In menu "Connectivity" click "Trunks".
click "Add Trunk"
click Add SIP (chan_pjsip)
General Tab settings
Trunk Name: "UniTel SIP " (or other descriptive name)
Hide Caller ID: "No"
Outbound CallerID: {11-digit DID} - Enter your UniTel DID Number in e.164 format i.e. 16305551234
CID Options: "Allow Any CID"
Maximum Channels: "30" - by default your Unitel Service is limited to 30 confurrent calls for your entire account. Adjust this value to limit calls per trunk.
Dial Number Manipulation Tab settings:
Ensure Outbound calls are sent to our network for termination with the leading 1. We require calls be received in e.164 format of 1NXXNXXXXXX . i.e. 16305551234 and NOT 6305551234
Pjsip Settings tab settings:
> General Tab
Username = {username} collected from Step-2
Secret = {passcode} collected from Step-2
Authentication = "Outbound" Inbound call failures will result if this value is not set correctly
Registration = "Send"
SIP Server = sip.unitelgroup.com
Context = from-pstn-toheader Inbound call failure can result if this is not set correctly
> Advanced Tab:
From Domain = "sip.unitelgroup.com"
Click Submit Button.
** Don't forget to click button [Apply Config] in top Navigation
Step 3b – Add Trunk (chan_sip)
*Note: if you previously created your trunk as chan_pjsip above, skip to Step 4
Follow the below instructions to create a chan_sip Trunk
In the General Settings section enter the following information:
Trunk Name: “UniTel SIP” (or other descriptive name)
Outbound CallerID: {11-digit DID} - Enter your UniTel DID Number in e.164 format i.e. 16305551234
CID Options: "Allow Any CID"
Dial Number Manipulation: Ensure Outbound calls are sent in the e.164 format of 1NXXNXXXXXX
Maximum Channels: "30" - by default your Unitel Service is limited to 30 confurrent calls for your entire account. Adjust this value to limit calls per trunk.
In the "sip Settings" > Outgoing Settings section enter the following information:
Trunk Name: "Unitel SIP Trunk" (or other descriptive name)
Peer Details:
username= {username} collected from Step-2
type=peer
secret= {passcode} collected from Step-2
rfc2833compensate=yes
qualify=yes
nat=yes
insecure=port,invite
host=sip.unitelgroup.com
dtmfmode=rfc2833
context=from-pstn-toheader
canreinvite=no
In "Incoming Settings" , clear all values from the "USER Context" and "USER Details" sections. Complete the Register String (see below)
In the Registration section, populate the Register String as follows:
chan_sip trunk Register String Format: {trunk_id}:{service_passcode}@sip.unitelgroup.com/{trunk_id}
i.e. s100001:[email protected]/s100001
Click Submit
Click [Apply Config] button in top nav
Step 4 - Configure Inbound Route
Navigate to Connectivity > Inbound Routes
Click button [+ Add Incoming Route]
Description: {Descriptive Name} i.e. 15556661234
DID Number: {11-digit UniTel number} | i.e. 15556661234
Caller ID Number: {leave empty}
Set Destination: {Set to your desired destination. i.e. Extension, Ring Groups, etc...
Step 5 - Configure Outbound Routes
Navigate to Connectivity > Outbound Routes
Route Name = UniTel SIP Route
Route CID = {11-digit-phone-number} - ** See Notes in Troubleshooting section
Create Dial Pattern as desired (Toll Free, US, Long distance, etc.)
In section Trunk Sequence for Matched Routes, add previously created trunk "UniTel SIP"
FreePBX Troubleshooting
Troubleshooting Trunk Registration
Whitelist IP Addresses listed in our Getting Started Guide > Whitelist UniTel IP Addresses section
chan_sip trunk Register String Format: {trunk_id}:{service_passcode}@sip.unitelgroup.com/{trunk_id}
i.e. s100001:[email protected]/s100001
Troubleshooting Inbound calls
Troubleshooting numbers configured with number mode "Assign To Trunk"
Whitelist IP Addresses listed in our Getting Started Guide > Whitelist section
Confirm Trunk status is Online/Registered. From the Manage Trunks screen, click [Trunk Info] and check "Registration Status" should show "Registered". If "Not Registered" refer to section Troubleshooting Trunks
Check Trunk Settings: confirm Trunk Authentication = "Outbound". UniTel Trunks configured in your PBX should accept all inbound calls received from UniTel Network. Improper values will result in inbound calls to be rejected by your PBX.
Check Trunk Settings: confirm context was entered with value "from-pstn-toheader" as detailed in above steps. Improper value will result in FreePBX improperly reading sip header Caller ID causing call rejection.
Check Inbound Route settings: If route is using DID Number matching, confirm you have entered the 11-digit number format. i.e. 16305551234 not 6305551234.
Troubleshooting Outbound calls
Call termination for Destinations located in the United States must be sent to our network in 11-digit number format (e.164 format). i.e. 16305551234 not 6305551234
Calls terminating outside the United States require calls to be passed with the prefix 011.
If you observe an announcement "This call is not covered by your Tariff Plan", reattempt the call ensuring it was dialed properly. If the issue persists contact us reporting the date/time and number dialed.
Check the status of your UniTel Trunk confirming it is registered/online. From the Manage Trunks screen, click [Trunk Info] and confirm "Registration Status" shows "Registered". If "Not Registered" refer to section Troubleshooting Trunks
Ensure any internal dial codes are not being passed in your calls to UniTel Trunks.
Outbound calls must send Caller ID of an existing UniTel DID (Local or Toll Free). Configuration of a DID number not serviced on your UniTel account will result in outbound calls being rejected. Contact us if you have need to pass Outbound Caller ID as a number not serviced on your Unitel account.




