Configuring PBX 106 IAX2 Trunk
- Select Add Trunk from the FreePBX main setup menu

- Select Add IAX2 Trunk

- Nothing to do here, move on to Outgoing Settings

- The Outgoing Settings are configured with information based on the destination's IAX user. Configure the Outgoing Settings as follows:
- Trunk Name: 101-peer - The name can be anything you want
- host=192.168.1.101 - This is the domain name or IP address of the trunk destination
- username=106-user - This is the IAX2 user that is created on the destination PBX
- secret=1234 - The password that will be used to qualify the trunk connection at the destination PBX
- type=peer - The type of IAX2 connection. This is a connection from PBX to PBX
- qualify=yes - Register the connection with the destination
- trunk=yes - Send channel data in one trunk packet instead of multiple channel packets, saves on bandwidth - optional
- Move to the Incoming Settings

- The Incoming Settings are configured so that an incoming IAX2 trunk has an account to qualify to. Configure the Incoming Settings as follows:
- User Context: 101-user - The name can be anything you want. This is the user account that the incoming IAX2 trunk will qualify to
- secret=1234 - The password that will be used to qualify the trunk connection at the destination PBX
- type=user - The type of IAX2 connection. This is a user account that a peer will qualify to
- Press submit, update and reload. Then check using FreePBX - Tools Tab- Config Edit option to see if /etc/asterisk/iax-additional.conf was updated properly with no typos.

- Go to the next step Testing the IAX2 Trunks
|