Repository navigation
Description
A short DNS outage on the node can stop a SIP trunk registration for good. The trunk stays in the Rejected state until someone saves it again or Asterisk is restarted, so the customer cannot make or receive calls through it.
When the NethVoice proxy cannot resolve the provider's host name, it answers the registration with 478 Unresolvable destination. Asterisk treats 478 as a fatal answer. The trunk defaults set fatal_retry_interval to 0, so Asterisk stops trying:
Fatal response '478' received from 'sip:sip.example.com:5060' on registration attempt to 'sip:0000000000@sip.example.com:5060', stopping outbound registration
On one node, several NethVoice instances got the 478 within the same 30 seconds, twice on the same day. All of them registered through the same proxy to the same provider. The DNS servers of that node answer quickly today. A network capture shows the proxy waiting 20 seconds (the resolver timeouts) and then replying 478 Unresolvable destination (478/TM), with no request sent to the provider.
Steps to reproduce
- Configure a trunk from a provider template, with registration enabled
- Make the node's DNS servers unreachable for about 30 seconds, while the trunk refreshes its registration
- Restore DNS
Expected behavior
The trunk registers again by itself once DNS works again, the same way it does after a timeout (408) or a server error (5xx).
Actual behavior
The proxy replies 478 and the trunk stays Rejected until it is saved again.
Proposed fix
Set fatal_retry_interval to 90 in the provider defaults, and on update change the existing trunks that still have 0. Other permanent errors (wrong user, 404…) are then retried every 90 seconds instead of never. That is still slower than the 10 seconds already used after a 403.
The proxy part (503 instead of 478, longer REGISTER and OPTIONS timeouts) is tracked in #8356.
Components
- NethVoice 1.7.14 / 1.8.4
See also
- Asterisk
fatal_retry_interval: https://docs.asterisk.org/Asterisk_22_Documentation/API_Documentation/Module_Configuration/res_pjsip_outbound_registration/
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(mariadb): retry trunk registration on errors (#1293)
edospadoni commentedon Nov 23, 2026
Test
PRs: nethesis/ns8-nethvoice#1293
Setup: a NethVoice instance with at least one trunk created from a provider template, with registration enabled. Run the Asterisk commands inside the freepbx container (
runagent -m nethvoiceX podman exec freepbx asterisk -rx "...").Test Case 1 - Existing trunks are migrated on update
pjsip show registration <trunk>showsfatal_retry_interval : 0fatal_retry_interval : 90, the second one keeps 30Test Case 2 - New trunks
fatal_retry_interval : 90Test Case 3 - Retry after a fatal answer
Fatal response '478' ... retrying in '90'instead ofstopping outbound registrationTest Case 4 - Regression
Testing release: 1.8.5-testing.64 (nethesis/ns8-nethvoice#1293)
edospadoni commentedon Nov 23, 2026
Release
nethesis/ns8-nethvoice1.8.5