Setting up FreePBX 14 PjSIP
1. In the section Connectivity -> Trunks add SIP(chan_pjsip) trunk.
Enter the trunk name in the field Trunk Name and go to tab "pjsip Settings"
Data is shown in the example:
xxxxxx: Your sip number
Secret: Your sip-number password
SIP Server: voip.syd.spintel.net.au
The following settings have to be completed as shown on the screenshot.
Tab PJSIP Settings – Advanced, change the parameters in the following fields:
From User: Your sip number (xxxxxx)
Send RPID/PAI Both
PJSIP Settings – Codecs:
Leave codecs alaw and ulaw, as shown on the screenshot.
3. In the section Connectivity -> Inbound Routes create routing for incoming calls.
Description: Spintel-in
DID Number: Your Inbound dial number (DID) number
In the section Set Destination you can determine where an incoming call be directed, it can be FreePBX extension number, call group, IVR etc.
4. Enter the section Connectivity -> Outbound Routes and create routing for outgoing calls Spintel-out.
Route Name: Spintel-out
Route CID: Your sip number (xxxxxx)
Trunk sequence for matched routes: Spintel
In the section Dial Patterns in the field "match pattern" enter a full stop (.) (shown on the next screenshot with a red arrow) and create routing. If you do not put a full stop, you will not be able to make outgoing calls.
The setup is complete.