Here I’m going to show how to setup extension to extension calling between 2 FreePBX systems using an IAX2 trunk.
There are 2 steps to this. First we need to create an IAX2 trunk on each system. Each trunk will configure the inbound and outbound user/connection. Then we will set up an outbound route on each system to tell FreePBX what calls to pass over the trunk. We will need extensions in different number ranges at each site for this to work.
Here are the details of the systems –
IP Address : 126.96.36.199
Extension Range : 3000 – 3999
IP Address : 188.8.131.52
Extension Range : 4000 – 4999
SETTING UP THE TRUNKS
First we create an IAX2 trunk on PBX1 with the following details –