Skip to content

NethVoice: trunk stays Rejected after a short DNS outage #8352

Closed

Description

@edospadoni

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.

Components

  • NethVoice 1.7.14 / 1.8.4

See also

Activity

  1. added
    nethvoice
    on Nov 20, 2026
  2. added theissue type on Nov 20, 2026
  3. added this to the NethVoice 1.8 milestone on Nov 20, 2026
  4. self-assigned this
    on Nov 20, 2026
  5. moved this from Todo to In Progress in NethVoiceon Nov 20, 2026
  6. added
    testing
    on Nov 23, 2026
  7. moved this from In Progress to Testing in NethVoiceon Nov 23, 2026
  8. edospadoni commented on Nov 23, 2026

    @edospadoni
    MemberAuthor

    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

    • 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

    Testing release: 1.8.5-testing.64 (nethesis/ns8-nethvoice#1293)

    ghcr.io/nethesis/nethvoice:1.8.5-testing.64
    
    api-cli run update-module --data '{"module_url":"ghcr.io/nethesis/nethvoice:1.8.5-testing.64","instances":["nethvoiceX"],"force":true}'
    
  9. removed their assignment
    on Nov 23, 2026
  10. added
    verified
    on Nov 23, 2026
  11. removed
    testing
    on Nov 23, 2026
  12. moved this from Testing to Verified in NethVoiceon Nov 23, 2026
  13. edospadoni commented on Nov 23, 2026

    @edospadoni
    MemberAuthor

    Release nethesis/ns8-nethvoice 1.8.5

  14. removed
    verified
    on Nov 23, 2026
  15. moved this from Verified to Done in NethVoiceon Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    nethvoice

    Type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions