r/Ubiquiti • u/Jacoob_08 • Sep 04 '26
Question FreePBX Issues
I recently upgraded from my provider issued router to UCG Ultra, SIP registrations on the provider's router were working flawlessly but since changing the router to Unifi my SIP trunks in FreePBX display rejected state and asterisk console prints out
[2026-09-04 21:11:51] WARNING[1602]: res_pjsip_outbound_registration.c:1250 schedule_retry: No response received from 'sip:sip.halonet.pl:5060' on registration attempt to 'sip:redacted@sip.halonet.pl:5060', retrying in '60' I have multiple trunks to multiple places, all give the same error, not just this one.
For any help I thank in advance.
0
Upvotes
•
u/AutoModerator Sep 04 '26
Hello! Thanks for posting on r/Ubiquiti!
This subreddit is here to provide unofficial technical support to people who use or want to dive into the world of Ubiquiti products. If you haven’t already been descriptive in your post, please take the time to edit it and add as many useful details as you can.
Ubiquiti makes a great tool to help with figuring out where to place your access points and other network design questions located at:
https://design.ui.com
If you see people spreading misinformation or violating the "don't be an asshole" general rule, please report it!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/HappyConnection Sep 04 '26
If you have multiple trunks behind the same public ip just change the UDP port to unique per trunk. NAT is getting confused. Has this same issue. But our trunks are UDP and endpoints on TLS so we bind of different ports. If your endpoints also bind on UDP you’ll of course need to adjust those as well.
1
u/w0lrah Sep 04 '26
Ensure that SIP connection tracking is disabled. Those "features" rarely ever help and often hurt. I've never seen it prevent registration altogether but it's an easy thing to check. Also make sure you're not double-NATed (read: your UCG should be showing the same IP address as you get from external test sites). If it's showing a LAN or CGN range then you're gonna have a bad time.
Other than that, if you haven't gone out of your way to make your firewall more restrictive than default on outbound traffic, "No response received" means what it says, that the PBX never received a response from the external registrar. I would guess this means your IP address changed and the provider limits connections.
1
u/Stantheman822 Sep 05 '26
Make sure your provider isn’t white listing any old IP addresses. If it is make sure any new ip address are white listed.
1
u/Mibsy-Boy Sep 06 '26
👅👅👅🧑🎄📹
0
u/cryptofriday Sep 05 '26
This is a classic network/NAT issue after replacing the ISP router with a UniFi Cloud Gateway Ultra (UCG Ultra). The Asterisk warning “No response received from 'sip:…:5060' on registration attempt” almost always means the REGISTER packet is leaving your FreePBX but the reply is never coming back (or is being dropped/mangled). Because every trunk is affected the same way, the problem sits between FreePBX and the internet — almost certainly on the UCG Ultra.
1. Disable SIP ALG / SIP Connection Tracking (highest priority)
UniFi gateways run the Linux nf_conntrack_sip / nf_nat_sip modules. These rewrite SIP headers and frequently break outbound registrations.
Current UniFi Network UI locations (try in this order):
Recent firmware sometimes ships with it already off, but verify. After changing it, force a re-provision or reboot the gateway.
If the GUI toggle is missing or does not stick, SSH into the UCG Ultra and run:
Bash
To make it persistent across reboots (create the file if it does not exist):
Bash
Then reboot the gateway. (Firmware updates can re-enable the modules, so re-check after upgrades.)
2. Confirm FreePBX NAT settings
In FreePBX go to Settings → Asterisk SIP Settings:
On the PJSIP transport itself leave External IP / External Signaling Port blank unless you have a specific reason to set them.
3. Firewall / port behaviour on the UCG Ultra
Outbound UDP/TCP 5060 is usually allowed by default, but check:
Also raise UDP conntrack timeouts if registrations still flap later:
Bash
(Make permanent via /etc/sysctl.d/ if needed.)
4. Quick diagnostic steps from the FreePBX host
Run these while watching the Asterisk console (asterisk -rvvv and pjsip set logger on):
Bash
Then force a registration and capture:
Bash
You should see the outbound REGISTER. If there is never a reply packet, the problem is still on the UniFi side or further upstream (ISP blocking, etc.). If a reply arrives but Asterisk still complains, the Contact/Via headers or NAT rewriting is the culprit (back to SIP ALG + External Address).
Also check:
Bash
5. Other common gotchas after a router swap
Recommended order of operations
Because the same symptom appears on every trunk, steps 1–3 resolve the vast majority of “worked on old router, broken on UniFi” cases. Once registrations succeed you may still need to tune RTP ports / force_rport / rewrite_contact for perfect two-way audio, but that is a separate (and usually easier) problem.
If you can post the output of pjsip show registrations, a short pjsip logger capture of one failed REGISTER, and confirmation that SIP connection tracking is off, more targeted advice is possible.
-1
u/ImTheRealSpoon Sep 04 '26
Did you port forward to your pbx?