We are aware of an issue where PBX solutions built using Asterisk 1.8.0 to 1.8.2 will not accept incoming calls from our network. This is due to a known bug in these versions which means they are incompatible with the later version of Asterisk that Gradwell uses. Please ensure that the version of Asterisk you use is at least 1.8.3
This guide details how to setup an IAX trunk on Elastix.
From the Elastix dashboard, click PBX from the top menu bar.
Click on Trunks from the left hand menu, and then select Add IAX2 Trunk.
Enter the details for your IAX trunk. Only the settings below need to be modified - any other values can be left as default.
- Trunk Name: enter a name for the trunk
- CID Options: set to Allow Any CID
Now scroll down to Incoming Settings. You need to enter your inbound trunk's username and password. To work this out, login to your Gradwell control panel and click Phone Numbers (underneath the setup menu). You will see your inbound number along with the destination.
We are interested in the section after IAX2/ and before the destination IP address. Your username is before the colon, and the password is after.
In the example image above, the username is gradwelltest and the password is mypassword.
n.b. if you wish to change these values simply click the edit link.
Make a note of your username and password and return to Elastix. In the USER Context field enter your username.
In the USER Details field enter the following, replacing [password] with the password from your control panel.
Click Submit Changes.
You now need to configure an inbound route so that Elastix knows how to handle received calls. From the left hand menu select Inbound Routes.
You will need to edit the following fields:
- Description: enter a descriptive name for the route
- DID Number: enter the phone number of the incoming trunk
Scroll down to Set Destination. This is where you decided where you want to direct incoming calls to this number. Select it using the dropdown box and click Submit to save your changes and complete the setup.
We also recommend that you include the following line in the file iax2generalcustom.conf file:
The last four lines will help ensure that your IAX trunk is not marked as unreachable - IAX2 uses PING/PONG instructions to check gateways are alive. If your Asterisk installation does not receive a PONG reply back from our cluster then the trunk may be marked as unreachable until Asterisk is restarted. The entry above should prevent this from happening.