Home > System Configurations > FreePBX PJSIP Trunk Setup

FreePBX PJSIP Trunk Setup

IMPORTANT:

  • Details in this document are for reference only, and are unsupported by the Flowroute support staff.
  • Please use as purely reference material, we make no guarantees that this information is correct, or will not harm your system. Please be careful and always keep a backup of anything before you make changes, or alter settings.
 

PJSIP is an Open Source and separate extension of the Asterisk, and Asterisk derived systems. You can find it here: PJSIP Download Page. along with some options to review FAQ’s pertaining directly to using PJSIP.

PJSIP provides a resource for assigning multiple trunks via SRV addresses, and more options. PJSIP also provides three main components of real-time multimedia application, i.e. signaling, media features, and NAT traversal, among other things that have been taken care of by PJSIP.

We suggest using PJSIP as an upgrade from Chan_SIP, as Chan_SIP is outdated, and the majority of users are moving to PJSIP which provides a number of more future proof options, and is still actively being improved by the community. You can find out more about PJSIP here: PJSIP About Page

Start by adding a Trunk and Select PJSIP Trunk
Add the following variables [ ] with the correct values found on your Flowroute site:

  • Trunk Name: [NAME YOUR TRUNK]
  • Outbound Caller ID: [chosen 11 digit DID]

Select pjsip Settings tab at the top, then:

  • Username: [TECH PREFIX]
  • Secret: [SECRET]
  • Authentication: OUTBOUND
  • Registration: SEND
  • SIP Server: Preferred POP.sip.flowroute.com - Example: us-west-wa.sip.flowroute.com
  • SIP Server Port: [5060]
 
 

 

Select pjsip Settings - Advanced Tab
 
Match(Permit):  147.75.60.160/28, 34.210.91.112/28, 34.226.36.32/28, 147.75.65.192/28
  • (IP addresses or networks to match against. The value is a comma-delimited list of IP addresses. IP addresses may have a subnet mask appended. The subnet mask may be written in either CIDR or dot-decimal notation. Separate the IP address and subnet mask with a slash ('/'). This setting is automatically generated by the PBX if left blank)

 

Support Path: YES

  • When this option is enabled, outbound REGISTER requests will advertise support for Path headers so that intervening proxies can add to the Path header as necessary.  


 

Select pjsip Settings - Codecs tab
Codecs that are supported are ulaw, alaw, and g729