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: Short star codes fail on SIP trunks #8408
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
Configure a SIP trunk for a provider that accepts a service code such as *2.
Add *2 as an outbound route match pattern, select that trunk, and apply the configuration.
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.
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
Activity
edospadoni commentedon Dec 3, 2026
Test
PR: nethesis/ns8-nethvoice#1404
Setup: an outbound route with the patterns
*1,*2and*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
*1from the extension: the trunk receives an INVITE for*1*2: the trunk receives an INVITE for*2*23: the trunk receives an INVITE for*23*2: the INVITE still reaches the trunkTest Case 2 - No regressions
*2through it*97voicemail) still works and does not go to the trunkTest Case 3 - Failover
*2reaches the backup trunkTesting release: 1.8.8-testing.39 (nethesis/ns8-nethvoice#1404)
Update command (replace
nethvoiceXwith the NethVoice instance):