Included below are some basic parameters to get your Asterisk server registering with our VFX platform, this is not intended as a walk through for configuring Asterisk from start to finish, but intended to get the registration and ability to call out via WorldxChange working. The following information assumes that you currently have a working knowledge of Asterisk and its configuration files, I’m sure others will be able to help with any other settings they find, but these are some of the settings we require as a minimum.
You will need to edit your Asterisk configuration files, below are examples for vanilla Asterisk and Trixbox:
Asterisk Configuration Details
Edit your Sip.conf file and add the following:
[General]
port = 5060
dtmfmode = rfc2833
disallow=all
allow=alaw
allow=ulaw
allow=g729 ; (G729 is a licensed Codec and must be licensed and enabled on your box if adding this line to your config)
registertimeout = 20
regseconds = 180
[VFX]
type=peer
fromdomain=pan.wxnz.net
fromuser=VFXNumber ; this is your VFX Number without the leading 0 i.e. 9950XXXX
host=pan.wxnz.net
insecure=invite,port
canreinvite=no
nat=yes
secret=PASSWORD
username=USERID
register=VFXNumber:PASSWORD:USERID@pan.wxnz.net/VFXNumber
Trixbox Configuration Details
Edit your Sip.conf file and add the following:
[General]
port = 5060
dtmfmode = rfc2833
disallow=all
allow=alaw
allow=ulaw
allow=g729 ; (G729 is a licensed Codec and must be licensed and enabled on your box if adding this line to your config)
registertimeout = 20
regseconds = 180
Edit your Sip_additional.conf file and add the following:
[VFX]
type=peer
fromdomain=pan.wxnz.net
fromuser=VFXNumber ; this is your VFX Number without the leading 0 i.e. 9950XXXX
host=pan.wxnz.net
insecure=invite,port
canreinvite=no
nat=yes
secret=PASSWORD
username=USERID
register=VFXNumber:PASSWORD:USERID@pan.wxnz.net/VFXNumber
FreePBX Configuration Details
Edit your trunk peer settings add the following:
[VFX]
disallow=all
allow=alaw&ulaw&g722 <- codec settings will depend on what you want to support incl video
type=peer
dtmfmode=rfc2833
fromdomain=pan.wxnz.net
fromuser=VFXNumber ; this is your VFX Number without the leading 0 i.e. 9950XXXX
host=pan.wxnz.net
insecure=invite,port
canreinvite=no
nat=yes
secret=PASSWORD
username=USERID
In the register area enter the following
VFXNumber:PASSWORD:USERID@pan.wxnz.net/VFXNumber
Note that as of Asterisk 1.8 nat=yes is now repreciated. You should use what is appropriate for your setup (while nat=yes will still work other settings may be more appropriate)
Also as a quick note.. Thank you to our VFX Asterisk Testers, your assistance has helped us get to where we are now.. :)
[Moderator edit (tonyhughes): Working step by step Trixbox VFX trunk settings here, and then this guide for installing Trixbox from scratch incl VFX]
[Mod (N8): Added disclaimer for licensing of G729 codec]