How to connect two Trixbox IP phone systems

If want to branch together multiple Trixbox phone systems, whether they are on your local network or not, this can be done with IAX. If the two machines are on different networks, you’ll need to open UDP port 4569 on both ends and point it to the Trixbox systems. Now follow these simple steps to connect up your system and make low cost point to point calls over the Internet with your hardware or software IP phones.

  1. On the secondary system, login to the admin console (Free PBX) and go to the extensions tab.
  2. Create an IAX2 extension with any number you would like, example: 200
  3. On your primary system, login to the admin console and go to the trunks tab.
  4. Create a new IAX2 trunk with any name. Under PEER, paste something like this:username=200 type=friend trunk=yes secret=extension secret host=xxx.xxx.xxx.xxx <– Your secondary Trixbox address context=from-internal
  5. Under ‘outbound routes’ on the primary box, create a new route. Let’s say, for example, we want to dial extensions in the 500 range on the secondary box. Just insert 5XX in the dial plan.
  6. Under Trunk Sequence, select your IAX trunk you have just created.
  7. On the primary system, create a new IAX extension.
  8. On the secondary system, go to Trunks and make a new IAX2 trunk. Under PEER, paste something like this:username=201 type=friend trunk=yes secret=extension secret host=xxx.xxx.xxx.xxx <– Your primary Trixbox address context=from-internal
  9. Go to ‘outbound routes’ and make a new route. Let’s say, for example, we want to dial extensions in the 400 range on the primary box. Just insert 4XX in the dial plan.
  10. Under Trunk Sequence, select your IAX trunk you have just created.

Test and Enjoy! Good times…

Leave a Reply