I've been using Asterisk PBX for a long time. It allows us to have multiple phone numbers, including a number in Denmark that all goes to the same phone system. When a fellow HAM pointed me to HamShack Hotline I wanted to expand my existing phone system and enable incoming and outgoing phone calls on the network to and from my HAM shack without adding any new hardware.
The process stared by requesting an new truck to be created on the HamShack Hotline network. This is done by creating a support ticket. The same process is used to obtain a number that can be used with a SIP phone.
A few days later I received an email with my new phone number, my secret password and the endpoint to connect my PBX to. Configuration of the system was to use the IAX protocol (or rather the IAX2 protocol) to connect my Asterisk PBX system to the system operated by HamShack Hotline. This sounds simple but since this was the first time I had to configure this type of connection I needed to do some research and as it turns out a bit of experimentation to get all the setting correct, especially since my PBX system is behind a firewall I needed to configure port forwarding to allow traffic originating from the outside to reach my server.
The first step was to enable port forwarding of the IAX2 protocol and to allow access to the same port from my internal network. The IAX2 protocol uses a single UDP port (4569) for all communication which makes the configuration simple. On the Linux server running the Asterisk PBX software I used these command to enable the port:
Then it was time to configure the trunk and extensions. Asterisk use a number of different configuration files, all located in /etc/asterisk (the default directory for configuration files) In this case there are two files that require changes: iax.conf and extensions.conf.
After making these changes to the Asterisk configuration I was able to make calls to the HamShack Hotline system but I could not receive incoming calls. Instead of waiting on someone to call me I tried to call my own extension from another phone on my system. I got the same error but now had a way to debug the system. Enabling IAX debugging on the Asterisk console revealed the problem. As seen in the output below the incoming call was trying to connect to and extension called 's' and my system was only configured with the 12033 extension I was given by HamShack Hotline.
In order to fix this I added a new extension to my dial plan. This small change made incoming calls working. The hack works since I only have one extension on the HamShack Hotline network and there might be a better way of changing the configuration.
I created a support ticket with HamShack Hotline to verify if there was anything on their end that might fix the issue. I received phone calls from two different support engineers but they were not able to point me to a solution or to make any suggestions to changes I could make to my configuration. Since the system is able to bot make and receive phone calls I can live with the hack on using an extension called s. I'm not the only one with similar problems. I found this discussion about the topic but the suggested fix does now work and I already have that setting on my system.