Trunk to a SIP switch

Trunk to a SIP switch using FreePBX

Below is the instruction:

A) Setup in SWITCH

First, you have to register the line or trunk that you are going to use. The steps are :

1) Log in to switch and go to Extensions.
– add SIP extension. Let say you are going to use line 3 and 4, create extension 9960111003 and then 9960111004

2) Go to Trunk section.
– add custom trunk (for line 9960111003) :
dial string : SIP/9960111003/$OUTNUM$
– add another custom trunk (for line 9960111004) :
dial string : SIP/9960111004/$OUTNUM$

*noted! $OUTNUM$ is a must!!

3) Go to Outbound Routes.
– add route :
route name : line3 (example)
dial patterns : 60111003|.
trunk sequence : SIP/9960111003/$OUTNUM$ (this one created on the Trunk menu before, just select from the list)
– add another route :
route name : line4 (example)
dial patterns : 60111004|.
trunk sequence : SIP/9960111004/$OUTNUM$ (this one created on the Trunk menu before, just select from the list)

B) Setup in PBX

After the line was registered in the switch, you can use it. Noted that the line can only be use after you register it in the switch, if not the line is not recognize able.

1) Log in to smaRtPBX and go to Extensions.
– create or edit extensions that you are going to use for that PBX. (e.g. 1001,1002,1003,1010, 1021)

2) Go to Trunk section.
– add SIP trunk :
trunk name : softswitch (example)
PEER Details :

fromdomain=60.52.253.83
host=60.52.253.83 (IP of the switch)
username=9960111003 (line that are going to be use)
fromuser=9960111003 (line that are going to be use)
secret=123456
context=from-internal
disallow=all
allow=ulaw&alaw
qualify=yes
insecure=port,invite
type=peer
nat=yes
canreinvite=no

3) Go to Outbound Routes.
– add route :
route name : softswitch (example only)
dial patterns : . (dot)
trunk sequence : SIP/softswitch
– put this route on a last priority (lowest)

❗ DO THE SAME SETTING FOR EVERY PBX AND TRY TO MAKE A CALL FROM/TO EACH OTHER. THIS SETTING HAVE BEEN TESTED FOR SEVERAL TIME AND IT SHOULD BE WORKING.

You may also like