Cover Story
Premium IAX2: Beyond the Dial Tone
Connecting whole PBXs, not just telephones
By Hams Over IP Team
Individual Hams Over IP phones commonly use SIP. IAX2 is designed for communication between compatible Asterisk systems. Its signaling and media normally share UDP port 4569, simplifying some NAT and firewall arrangements.
Premium can provide an authorized interconnect for a private PBX, but the trunk is not an unrestricted gateway. Both sides must agree on credentials, destinations and routing permissions. This issue walks through FreePBX first, then explores Asterisk, Incredible PBX and AllStarLink.
Premium PBX Updates
Prepare Your Premium IAX2 Account
Credentials, permissions and connection details
By Hams Over IP Team
Premium users may have up to two IAX2 trunks and up to three active PJSIP extensions. Obtain your assigned IAX2 credentials in the Premium Dashboard; do not assume they are the same as your SIP credentials.
Server: premium.hamsoverip.com. Protocol: IAX2. Port: 4569/UDP. Confirm the required registration and inbound authentication details for your particular account before proceeding. Premium extension numbers follow the six-digit 4XXXXX format.
Technical Corner
FreePBX to Premium: Step-by-Step
Build the trunk, route calls and verify the connection
By Hams Over IP Team
1. Create the trunk
In FreePBX, open Connectivity → Trunks and select Add IAX2 Trunk if available. Name it ASSIGNED_IAX2_EXTENSION ie. 400000.
2. Configure outgoing peer settings
type=peer
host=premium.hamsoverip.com
port=4569
username=ASSIGNED_IAX2_EXTENSION
secret=ASSIGNED_IAX2_SECRET
auth=md5
qualify=yes
disallow=all
allow=h264
allow=g722
allow=ulaw
allow=alaw
allow=gsm
transfer=no
3. Configure incoming peer settings
Under Incoming → USER Details, enter:
type=user
auth=md5
context=from-trunk
disallow=all
allow=h264
allow=g722
allow=ulaw
allow=alaw
allow=gsm
transfer=no
This is an illustrative template. Authentication method, codecs, registration and inbound matching must be confirmed against your actual Premium account. FreePBX interfaces vary; use the appropriate outgoing peer fields, not unrelated generated configuration files.
3. Understand registration
Some IAX2 deployments require a registration string, commonly resembling ACCOUNT_IAX2_EXTENSION:ASSIGNED_IAX2_SECRET@premium.hamsoverip.com. Do not assume this is the exact format Premium requires. Confirm the account-specific details first.
4. Create the outbound route
Under Connectivity → Outbound Routes, create HOIP-Premium, select your IAX2 trunk and add the dial pattern [1-9]x.. In raw Asterisk syntax, this is _4XXXXX. Avoid broad catch-all routes.
5. Apply and test
Submit, Apply Config, then check:
asterisk -rx "iax2 show registry"
asterisk -rx "iax2 show peers"
asterisk -rx "iax2 show channels"
Test only an authorized destination. A peer showing OK proves reachability, not successful authentication or call routing.
Asterisk Events
What Registration and Peer Status Really Mean
Different layers, different failure modes
By Hams Over IP Team
Registration, peer reachability, call authorization and audio delivery are separate checks. A registered trunk may still reject a dialed destination; a reachable peer may reject the account identity.
asterisk -rx "iax2 show registry"
asterisk -rx "iax2 show peers"
asterisk -rx "iax2 show channels"
asterisk -rx "core show channels concise"
During a controlled test, asterisk -rvvv helps identify the dialplan route, chosen trunk and hangup cause. Debug signaling only briefly and protect logs containing sensitive information.
Troubleshooting Desk
When IAX2 Calls Fail
No authority, busy messages and NAT problems
By Hams Over IP Team
No authority found
Investigate the receiving PBX's account matching, authentication identity, secret and allowed source address.
All circuits are busy
This can be the result of an unsuccessful call attempt, not actual trunk congestion. Check the underlying hangup cause.
No such context/extension
The receiving dialplan cannot find the requested destination in the incoming context. Verify digits, context and permissions.
Timeout or missing audio
Check DNS, firewall state and UDP 4569 in both directions. A temporary tcpdump -ni any udp port 4569 can reveal packet flow. Handle captures carefully.
Advanced Integration
Standalone Asterisk and Incredible PBX
Manual peers and dialplan routes
By Hams Over IP Team
Standalone Asterisk commonly stores IAX2 settings in iax.conf.
1. Add this right below [general].
register => ASSIGNED_IAX2_EXTENSION:ASSIGNED_IAX2_SECRET@premium.hamsoverip.com
2. Add this to the bottom of iax.conf file.
[hoip-premium]
type=peer
host=premium.hamsoverip.com
port=4569
username=ASSIGNED_IAX2_EXTENSION
secret=ASSIGNED_IAX2_SECRET
auth=md5
context=hoip-inbound
qualify=yes
trunk=yes
disallow=all
allow=h264
allow=g722
allow=ulaw
allow=alaw
allow=gsm
transfer=no
Please note that your audio and video codecs need to be enabled for you to use the codecs mentioned above.
3. Find [from-internal] and add to the end of that stanza in extensions.conf the following:
include => hoip-outbound
4. Create the inbound context by adding this to the bottom of extensions.conf.
A sample inbound context is:
[hoip-inbound]
exten => _ASSIGNED_IAX2_EXTENSION,1,NoOp(Premium inbound)
same => n,Dial(PJSIP/YOUR_INTERNAL_PJSIP_EXTENSION,45)
same => n,Hangup()
5. Create the outbound context by adding this to the bottom of extensions.conf.
A sample outbound context with a dial prefix of 9 is:
[hoip-outbound]
exten => _9[1-9]XXX,1,NoOp(Premium outbound 4-digits)
same => n,Dial(IAX2/hoip-premium/${EXTEN},45)
same => n,Hangup()
exten => _9[1-9]XXXX,1,NoOp(Premium outbound 5-digists)
same => n,Dial(IAX2/hoip-premium/${EXTEN},45)
same => n,Hangup()
exten => _9[1-9]XXXXX,1,NoOp(Premium outbound 6-digits)
same => n,Dial(IAX2/hoip-premium/${EXTEN},45)
same => n,Hangup()
Include this context only where authorized. Verify the remote authentication and incoming routing requirements separately. Backup before changing any production dialplan. Reload Asterisk and call 990007. You should hear music.
RF-Link Spotlight
AllStarLink and Radio Integration
An IAX2 trunk is not automatically an RF gateway
By Hams Over IP Team
AllStarLink and Premium both relate to Asterisk technology, but their call and control paths are not automatically interchangeable. A radio gateway requires push-to-talk control, suitable audio levels, DTMF handling, station identification, access restrictions and safeguards against unintended transmissions.
Establish a stable authorized PBX connection first; evaluate RF integration separately and follow applicable amateur radio regulations.
Security Corner
Keep Your IAX2 Trunk Secure
Narrow permissions and strong credentials
By Hams Over IP Team
Use unique secrets, restrict UDP exposure where practical, monitor authentication failures, maintain updates and limit dial patterns to authorized destinations. Do not publish credentials in screenshots, logs or support tickets.
Standard IAX2 authentication does not by itself guarantee encrypted audio. Consider a properly configured VPN where confidentiality is needed.
Community Q&A
Three Questions From the Shack
A balanced look at shared trunks, failed calls and RF gateways
By Hams Over IP Team
Q1: Can one Premium IAX2 trunk serve multiple local FreePBX phones?
Yes. Several local extensions can originate calls over one authorized IAX2 connection, subject to applicable call limits and routing permissions. Premium allows up to two IAX2 trunks per user.
Q2: Why does my peer show OK when calls fail?
OK means the peer responded to a reachability check. Verify the outbound route and destination digits, then inspect asterisk -rvvv during a test call. Authentication rejection and missing dialplan destinations are different problems.
Q3: Can AllStarLink connect through Premium?
Potentially, with additional engineering. A standard telephone trunk does not automatically control an RF transmitter. PTT, audio, identification and access safeguards must be designed and tested separately.
Send questions to the Hams Over IP Helpdesk.
Ready to Build?
Your Next Connection Starts Here
Start small and verify each layer
By Hams Over IP Team
Obtain your assigned Premium IAX2 credentials, configure one clearly named FreePBX trunk, add a narrow outbound route and test a destination you are authorized to call. Keep a backup and document the working configuration.
Premium members can submit tickets from the Premium Dashboard after signing in. General support is available at Hams Over IP Support/Helpdesk.
Community Support
Calling CQ CQ: Support Hams Over IP
Help keep the network growing
By Hams Over IP Team
Hams Over IP connects amateur radio operators through shared technical infrastructure, PBXs and community expertise. Keeping these services available requires ongoing time and resources.
If the network has helped you connect or learn, please consider supporting the Calling CQ CQ GoFundMe.
Thank you for supporting Hams Over IP. 73!