This is an old revision of the document!
Incomplete
FreePBX is an Asterisk management system with a web interface.
See also Other FreePBX pages in this wiki
FreePBX offers numerous add-on modules.
Commonly installed modules:
These settings are traditionally found in
/etc/asterisk/sip_nat.conf
but newer FreePBX systems may have them in /etc/asterisk/sip_general_additional.conf
where they are managed by the FreePBX web interface.
Adjust as necessary:
/etc/asterisk/sip_nat.conf localnet=192.168.1.0/255.255.255.0 externhost=your.externaldnshostname.tld externrefresh=10 fromdomain=yourdomain.tld nat=yes qualify=yes canreinvite=no asterisk -rx reload
If you have Postfix installed, it's easy to use that:
See also Postfix Authenticated Smarthost
If you don't have another MTA installed, SSMTP is a simple alternative:
See also SSMTP
http://www.freepbx.org/support/documentation/howtos/howto-route-dial-patterns-and-trunk-dial-rules
http://www.inphonex.com/support/trixbox-configuration-v2.6.1.1.php
Trunk Description: InPhonex Outbound Caller ID: 5201231234
Dial Rules only modify dial strings. Use '+' to add or '|' to remove digits:
1520+NXXXXXX 1+NXXNXXXXXX
Trunk Name: inphonex-outbound Peer Details:
type=peer insecure=very host=sip.inphonex.com username=yourinphonexusername secret=yourinphonexpassword qualify=yes sendrpid=yes context=from-pstn fromuser=yourinphonexusername fromdomain=sip.inphonex.com canreinvite=no
User Context: inphonex-inbound
User Details:
type=friend context=from-pstn username=yourinphonexusername user=yourinphonexusername insecure=very host=sip.inphonex.com fromdomain=sip.inphonex.com
Registration String:
yourinphonexusername:yourinphonexpassword@sip.inphonex.com/yourinphonexusername
Trunk Description: Vitelity Outbound Caller ID: 5201231234
Dial Rules only modify dial strings. Use '+' to add or '|' to remove digits:
1520+NXXXXXX 1+NXXNXXXXXX
Trunk Name: vitelity-outbound Peer Details:
type=friend dtmfmode=auto host=outbound.vitelity.net username=yourvitelityusername fromuser=yourvitelityusername trustrpid=yes sendrpid=yes secret=yourvitelitypassword allow=all canreinvite=no
User Context: vitelity-inbound
User Details:
type=friend dtmfmode=auto host=inbound23.vitelity.net context=inbound username=yourvitelityusername secret=yourvitelitypassword allow=all insecure=very canreinvite=no
Registration String:
yourvitelityusername:yourvitelitypassword@inbound23.vitelity.net:5060
Route Name: Default Emergency: enabled Dial Patterns:
011. 1NXXNXXXXXX NXXNXXXXXX NXXXXXX
Pick a trunk or two.
Inbound Routes
Route Name: Default Set Destination: