Skip to content

NethVoice: transcription channels stay up after calls #8392

Done

Description

@edospadoni

On a NethVoice with call transcription enabled, some internal channels created for the transcription stay active for hours or days after the call has ended. They pile up until NethVoice is restarted.

Steps to reproduce

  • Enable call transcription on a NethVoice instance with a good number of calls per day
  • Wait for calls that end right after the answer, while the transcription is still being set up: it is not possible to trigger it on purpose on every call, on a busy system it happens a few times per day
  • Inside the freepbx container run asterisk -rx 'core show channels verbose'

Expected behavior

Only the channels of the calls in progress are listed. The channels used for the transcription are closed together with their call.

Actual behavior

The list shows UnicastRTP channels of the satellite application that are much older than any call in progress. Some are still inside a bridge, others are alone:

UnicastRTP/127.0.0.1:20997-0x7f1acc0aa7e0  default  s  1 Up  Stasis  satellite  45:52:31  bridge-in-1795518762
UnicastRTP/127.0.0.1:20997-0x7f1b0c043cc0  default  s  1 Up  Stasis  satellite  41:48:15

Each leftover channel inside a bridge keeps sending audio packets to the transcription service, so it uses some processor time for nothing, and the transcription service can attach those packets to a new call. The Satellite log also shows Error in WebSocket event loop followed by a reconnection to Asterisk.

Hanging up the leftover channels by hand removes them, but new ones appear in the following days.

Components

NethVoice 1.8.6

See also

Activity

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

    @edospadoni
    MemberAuthor

    Test

    PR: nethesis/ns8-nethvoice#1342

    Setup: a NethVoice instance with call transcription enabled, updated to the testing release below.

    Test Case 1 - Leftover channels are removed at startup

    • Before the update, on an instance that shows the problem, run asterisk -rx 'core show channels verbose' inside the freepbx container and note the UnicastRTP channels of the satellite application older than the calls in progress
    • Update the instance
    • Run the command again: the old UnicastRTP channels are gone

    Test Case 2 - No leftover channels after short calls

    • Make several calls and hang up right after the answer, while the transcription is still being set up
    • Wait a couple of minutes with no calls in progress
    • asterisk -rx 'core show channels verbose' shows no UnicastRTP, Snoop or satellite channels
    • asterisk -rx 'bridge show all' shows no bridge-in-* or bridge-out-* bridges

    Test Case 3 - Transcription still works

    • Make a normal call with transcription enabled and talk for a while
    • The transcription of the call is produced as before
    • After the hangup, the channels and bridges of the call are closed

    Testing release: 1.8.7-testing.33 (nethesis/ns8-nethvoice#1342)

    ghcr.io/nethesis/nethvoice:1.8.7-testing.33
    

    Update command (replace nethvoiceX with the NethVoice instance):

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

    @edospadoni
    MemberAuthor

    Release nethesis/ns8-nethvoice 1.8.7

  14. removed
    verified
    on Nov 27, 2026
  15. moved this from Verified to Done in NethVoiceon Nov 27, 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