Testing IAX2 Trunks
To test the trunks, we have to go to the Asterisk Command Line Interface (CLI). You can get there many different ways:
- From the PBX console port
- From SSH'ing in using Putty SSH client
- From FreePBX/Webmin SSH client
In all cases, you will be typing the following at the Linux prompt:
root@pbx~$ asterisk -rvv (r and two v's)
At the Asterisk command line, you will type iax2 show peers to see if the IAX2 trunk has connected properly:

The preceding image is showing PBX 101 IAX2 peer connections. Here's the important parts:
- It shows that 106-peer is connecting via user 101-user
- The status is ok - if it shows anything else - recheck your configuration cause it's not working
- There is an IAX2 client 1002 connected (nothing to do with the IAX2 trunks that we are configuring)
- There are two peers online.

The preceding image is showing PBX 106 IAX2 peer connections. Here's the important parts:
- It shows that 101-peer is connecting via user 106-user
- The status is ok - if it shows anything else - recheck your configuration cause it's not working
- There is an IAX2 client 3002 connected (nothing to do with the IAX2 trunks that we are configuring)
- There are two peers online.
Next is to create the Outbound Routes for PBX 101 and then for PBX 106.
|