You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NethVoice: trunk stays Rejected after a short DNS outage #8352
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:[email protected]: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.
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
Before the update, pjsip show registration <trunk> shows fatal_retry_interval : 0
Set a different value by hand on a second trunk (for example 30 in the trunk advanced settings)
Update the module: the first trunk now shows fatal_retry_interval : 90, the second one keeps 30
Test Case 2 - New trunks
Create a new trunk from a provider in the wizard: it gets fatal_retry_interval : 90
Test Case 3 - Retry after a fatal answer
Make the provider answer the registration with a fatal code, e.g. point the trunk at a wrong host name so that the proxy replies 478
Asterisk logs Fatal response '478' ... retrying in '90' instead of stopping outbound registration
Fix the trunk/DNS: the trunk goes back to Registered by itself within 90 seconds, without saving it again
Test Case 4 - Regression
Trunks that register normally stay Registered; incoming and outgoing calls work
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