Skip to content

NethVoice: Short star codes fail on SIP trunks #8408

In review
nethesis/ns8-nethvoice
#1404

Description

@Stell0

Since NethVoice 1.8.0, calls to provider service codes such as *2 fail even when the code is configured in an outbound route and the caller can use that route.

Steps to reproduce

  1. Configure a SIP trunk for a provider that accepts a service code such as *2.
  2. Add *2 as an outbound route match pattern, select that trunk, and apply the configuration.
  3. Dial *2 from an extension that can use the outbound route.

Expected behavior

NethVoice sends a SIP INVITE for *2 to the configured trunk.

Actual behavior

The call fails before NethVoice sends a SIP INVITE. Asterisk logs:

Gosub attempted to reach non-existent destination 'trunk-dial-with-exten,*2,1'

Components

  • NethVoice 1.8.0 and later builds using affected FreePBX Core 17 versions, including 17.0.18.54 and 17.0.18.56.
  • NethVoice 1.7.14 with FreePBX Core 16 used a direct trunk dial.

See also

Activity

  1. added this to the NethVoice 1.8 milestone on Dec 3, 2026
  2. added
    nethvoice
    on Dec 3, 2026
  3. added theissue type on Dec 3, 2026
  4. added
    testing
    on Dec 3, 2026
  5. edospadoni commented on Dec 3, 2026

    @edospadoni
    Member

    Test

    PR: nethesis/ns8-nethvoice#1404

    Setup: an outbound route with the patterns *1, *2 and *23, pointing to a test SIP trunk as primary and a second trunk as backup. An extension allowed to use the route.

    Test Case 1 - Short star codes reach the trunk

    • Dial *1 from the extension: the trunk receives an INVITE for *1
    • Dial *2: the trunk receives an INVITE for *2
    • Dial *23: the trunk receives an INVITE for *23
    • Apply the configuration again, then dial *2: the INVITE still reaches the trunk

    Test Case 2 - No regressions

    • A normal outbound call to an external number still works
    • An extension not allowed to use the route cannot dial *2 through it
    • A local feature code (e.g. *97 voicemail) still works and does not go to the trunk

    Test Case 3 - Failover

    • With the primary trunk unreachable, dialing *2 reaches the backup trunk

    Testing release: 1.8.8-testing.39 (nethesis/ns8-nethvoice#1404)

    ghcr.io/nethesis/nethvoice:1.8.8-testing.39
    

    Update command (replace nethvoiceX with the NethVoice instance):

    api-cli run update-module --data '{"module_url":"ghcr.io/nethesis/nethvoice:1.8.8-testing.39","instances":["nethvoiceX"],"force":true}'
    
  6. moved this from Todo to Testing in NethVoiceon Dec 3, 2026
  7. removed their assignment
    on Dec 3, 2026
  8. added
    verified
    on Dec 3, 2026
  9. removed
    testing
    on Dec 3, 2026
  10. moved this from Testing to Verified in NethVoiceon Dec 3, 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

    nethvoiceverified

    Type

    Projects

    • Status
      Verified

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions