Home > Asterisk > IAX2 Trunking Two Trixbox Servers

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.

Advertisements
Categories: Asterisk
  1. icemoj
    September 7, 2006 at 4:48 am

    yep i did all that and still i am geting all circuits r busy.
    ce some1 help me pls

  2. September 11, 2006 at 10:25 pm

    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

  3. chadandringa
    December 6, 2011 at 2:59 pm

    could you explain how to set up an iax2 trunk between a Trixbox Pro and Trixbox CE server?

  1. August 17, 2006 at 11:27 pm
  2. January 26, 2007 at 6:08 pm
  3. September 7, 2008 at 1:07 pm
  4. April 22, 2013 at 5:16 am

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: