Skip to content

NethVoice Proxy: Upgrade the SIP proxy to Kamailio 6.0 #8206

Open
nethesis/ns8-nethvoice-proxy
#192

Description

@Amygos

The NethVoice proxy currently uses Kamailio 5.8. Upgrade it to Kamailio 6.0 so new and existing installations can run the newer version.

The upgrade must update the database schema required by Kamailio 6.0 without losing existing data. It should be safe to run the migration more than once and preserve the documented ability to downgrade to Kamailio 5.8.

Acceptance criteria:

  • A fresh installation starts Kamailio 6.0.
  • An existing installation upgrades successfully and retains its data.
  • Running the schema migration again succeeds.
  • The upgrade and downgrade expectations are documented.

Activity

  1. added theissue type on Oct 5, 2026
  2. added
    nethvoice
    on Oct 6, 2026
  3. added
    testing
    on Oct 12, 2026
  4. edospadoni commented on Oct 26, 2026

    @edospadoni
    Member

    QA results

    Build to test: ghcr.io/nethesis/nethvoice-proxy:pr-192.212-1.546479f (nethesis/ns8-nethvoice-proxy#192 rebased on main, commit bb7939f).

    The results below were obtained on an NS8 test cluster with real phones, using the earlier build pr-192.171-1.3631039. The rebase did not change the PR diff.

    Acceptance criteria

    • A fresh installation starts Kamailio 6.0: not tested on the cluster. The CI image builds and starts, and the upgraded instance below runs 6.0.8.
    • An existing installation upgrades successfully and retains its data:
      • An instance running Kamailio 5.8.8 was updated.
      • Kamailio reports 6.0.8 and the containers are healthy.
      • The htable key and value columns are widened from 64/128 to 256/512 characters, and the existing rows are preserved.
      • Phones register over TLS, and TLS 1.3 works on port 5061.
    • Running the schema migration again succeeds: running update-module.d/30migrate_kamailio_60_schema again changes nothing and exits successfully.
    • The upgrade and downgrade expectations are documented: the README now has a "Kamailio 6.0 upgrade" section, added in commit bb7939f. It covers the schema change, the repeated migration and the downgrade.

    Downgrade: a forced update-module back to a 5.8 image works. The widened columns are accepted by Kamailio 5.8, so the schema does not need to be reverted. The htable contents are in memory only and are rebuilt at startup.

    Compatibility with main: the branch is rebased on main, which now includes nethesis/ns8-nethvoice-proxy#222, nethesis/ns8-nethvoice-proxy#229 and nethesis/ns8-nethvoice-proxy#235. The resulting Kamailio configuration passes the configuration check (kamailio -c) on 6.0.8. Between 5.8.8 and 6.0.8, the htable change is the only database schema change upstream.

    The branch has been rebased on main. It needs a review before it can be merged.

  5. edospadoni commented on Nov 10, 2026

    @edospadoni
    Member

    Updated testing build

    nethesis/ns8-nethvoice-proxy#192 is updated with the latest main. Use this build instead of pr-192.212-1.546479f:

    ghcr.io/nethesis/nethvoice-proxy:pr-192.239-1.c350737

    api-cli run update-module --data '{"module_url":"ghcr.io/nethesis/nethvoice-proxy:pr-192.239-1.c350737","instances":["nethvoice-proxy1"],"force":true}'

    Replace nethvoice-proxy1 with your instance name. The acceptance criteria in the previous comment still apply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

nethvoicetesting

Type

Projects

  • Status
    Testing

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions