SIP Trunk btw Asterisk Business Edition & Trixbox

I couldn’t find information on this… I was able to get it to work.This is the configuration for an interoffice SIP trunk…adjust values to suite…

Asterisk Business Edition Configuration (2.12)…

Go to Trunks > VOIP Trunks
Provider Name: InterOffice
Hostname: xxxx (IP Address of Trixbox Server)
username: 12000 (Common Account on both sides: Change it to whatever remote office extension you would like)
password: 5555
Codecs: ulaw, alaw, gsm

Go to Options > Advanced Options > Click Show Advanced Options.

Now go to the file editor and go to users.conf Edit the 12000 context to the following
insecure=very
authname=12000
fromuser=12000
context=DLPN_DialPlan1
host=x.x.x.x (IP Address of Trixbox)
username=12000
secret=5555
trunkname=InterOffice
hasiax=no
registeriax=no
hassip=yes
registersip=yes
trunkstyle=voip
hasexten=no
disallow=all
allow=ulaw,alaw,gsm,g726

Create a DialPlan Rule to send for 12xxx extensions over the Interoffice trunk.

Trixbox Configuration:

Go to trunks
Outgoing Settings:
Trunk Name: InterOffice
host=xxxx (IP Address of ABE server)
type=peer
nat=yes
username=12000
secret=5555

Incoming settings;
User context: 12000
secret=5555
type=friend
host=dynamic
nat=yes
context=from-internal

Create an Outbound Route for the Trixbox server. In my case i have all traffic going through so i have X.

That should be it.