IAX2 Trunking Two Trixbox Servers
Here is the method I am currently using to connect two trixbox servers. This is all done using freePBX.
Dialing 5XXX on either server reaches extension XXX on the other. This can be modified as needed.
Use find & replace in a text editor to change the actual values:
Server1 : Name of Server1 (arbitrary)
Server2 : Name of Server2 (arbitrary)
Server1IPAddress : ip address of server 1
Server2IPAddress : ip address of server 2
Server1User : user acct for server 1 (arbitrary)
Server2User : user acct for server 2 (arbitrary)
Server1Secret : password for server 1 (arbitrary)
Server2Secret : password for server 1 (arbitrary)
Then you can cut & paste the sections into the proper forms.
Server1 Configuration
Create new IAX2 Trunk: Trunk Name: Server2
Peer Details:
context=from-internal
host=Server2IPAddress
qualify=yes
secret=Server2Secret
type=peer
username=Server2User
User Context: Server1User
User Details:
context=from-internal
host=Server2IPAddress
secret=Server1Secret
type=user
Create outbound route:
Dial Patterns: 5|XXX
trunk Sequence: IAX2/Server2
Server2 Configuration
Create a new IAX2 Trunk: Trunk Name: Server1
Peer Details:
context=from-internal
host=Server1IPAddress
qualify=yes
secret=Server1Secret
type=peer
username=Server1User
User Context: Server2User
User Details:
context=from-internal
host=Server1IPAddress
secret=Server2Secret
type=user
Create outbound route:
Dial Patterns: 5|XXX
trunk Sequence: IAX2/Server1
UPDATE: I have added a post for trunking two trixbox pro servers.




yep i did all that and still i am geting all circuits r busy.
ce some1 help me pls
This can be very finicky, especially if there are firewalls involved. You might want to check the trixbox forum for users with similar problems:
http://www.trixbox.org/modules/newbb/viewforum.php?forum=4
could you explain how to set up an iax2 trunk between a Trixbox Pro and Trixbox CE server?