FreePBX/Asterisk

Asterisk & FreePBX Configuration

Asterisk does not currently support DNS SRV records for name-based dialing. As a result each ITSP SBC needs to be added as a trunk. In the example below we are configuring the “central” Canadian SBC for RBS’ SIP trunking service. RBS currently has two SBC locations, central and eastern they are named as sbc1.central.sip.myrbs.ca and sbc1.east.sip.myrbs.ca. A second trunk with identical configuration has also been created with the host=sbc1.east.sip.myrbs.ca. In the outgoing call rules the order of the outbound trunks has been configured with the central SBC before the eastern SBC as we are located closer to the central SBC.

FreePBX SIP Trunk Configuration

The “Trunk Name” can be configured for anything you like, it is used to identify the trunk to asterisk and is not communicated to the configured peer.

type=peer
sendrpid=yes
rfc2833compensate=yes
relaxdtmf=yes
progressinband=no
insecure=port,invite
host=sbc1.central.sip.myrbs.ca
dtmfmode=rfc2833
disallow=all
context=from-pstn
allow=ulaw

qualify=yes
Can also be added to the outgoing settings. This will cause Asterisk to send SIP OPTION (ping-type) packets to the SBC to ensure it is still alive.

If you require further explanation on the fields in this configuration, please refer to the sip.conf configuration guide.

type=peer
trustrpid=yes
sendrpid=yes
rfc2833compensate=yes
relaxdtmf=yes
progressinband=no
insecure=port,invite
host=sbc1.central.sip.myrbs.ca
dtmfmode=rfc2833
disallow=all
context=from-pstn
allow=ulaw

The RBS SIP trunking product relies on IP-to-IP calling and does not require registration.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

HTML tags are not allowed.