Repository navigation
Conversation
NormB
added a commit
to NormB/NormB
that referenced
this pull request
Nov 9, 2026
Move the NATS modules from the not-yet-upstream list to an open pull request, OpenSIPS/opensips#4442, and name the five modules it adds. Update the counts from the GitHub search and Open VSX: 75 merged upstream pull requests (OpenSIPS 48, 37 in 2026), 75,000+ language-server installs, and the LSP releases, now 0.28.1 and 0.22.1. vcon-server is at 0.4.1.
NormB
force-pushed
the
nats/upstream-cleanup
branch
from
November 10, 2026 20:09
e7eabc6 to
6411a3d
Compare
NormB
force-pushed
the
nats/upstream-cleanup
branch
3 times, most recently
from
November 10, 2026 21:09
2303cff to
2ea452e
Compare
Add five community-contributed modules that integrate OpenSIPS with NATS and JetStream: nats shared connection pool and libnats loader event_nats event transport over NATS subjects and JetStream cachedb_nats cachedb backend on JetStream KV (usrloc, b2b) cachedb_nats_fts optional full-text search for cachedb_nats nats_consumer JetStream pull consumer with request/reply The modules load libnats 3.14 or later with dlopen. Also add Debian and RPM packaging entries and a libnats install script. Each module carries its unit tests as a <module>/test/ suite run by unittests.yml (make test-<module>); the CI legs install libnats, and a suite whose module was not built is skipped. The end-to-end checks are SIPssert scenarios for sipssert-opensips-tests.
NormB
force-pushed
the
nats/upstream-cleanup
branch
from
November 11, 2026 14:23
2ea452e to
5341de2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add five community-contributed modules under
modules-contrib/that integrate OpenSIPS with NATS and JetStream. Like all contrib modules, they are excluded from the defaultmakeandmake installtargets and are built only when selected explicitly.Details
natsevent_natsevent_natsnatscachedb_natscachedbbackend on JetStream KV, for usrloc and b2bcachedb_nats_ftscachedb_natsnats_consumercachedb_nats,event_natsandnats_consumerbind tonats.soat runtime throughload_nats_api.cachedb_nats_ftsplugs intocachedb_nats.The change is 314 files, 78,167 insertions and 8 deletions. Of those, 308 files and 77,857 lines are under
modules-contrib/, 179 files and 27,754 lines of them the unit tests (each module'stest/suite).Solution
The modules load libnats with
dlopenand never link-lnats, so packages need it only as a build dependency. The libnats found at runtime must have the same major.minor as the build headers, or OpenSIPS refuses to start. If libnats is missing or too old at build time, each module is skipped without failing the build.Dependencies
libnats-dev3.10.1 is too oldtls_mgmand a TLS-enabled libnatstls://URLs only-DNATS_BUILD_WITH_TLS=ONBuild
LIBNATS_TLS=ON scripts/build/install_libnats.sh make all make modules-contrib modules="modules-contrib/nats modules-contrib/cachedb_nats modules-contrib/cachedb_nats_fts modules-contrib/event_nats modules-contrib/nats_consumer"To load them, include both module trees in
mpathand loadnats.sobefore the others.Test
Each module has a unit-test suite in
modules-contrib/<module>/test/, run in the existing layout byunittests.yml(the CI legs now install libnats; a suite whose module was not built is skipped):The end-to-end checks are SIPssert scenarios kept with the modules' maintainer, on the
nats-setsbranch of NormB/sipssert-opensips-tests (setsnats,event_nats,cachedb_nats,nats_consumer; they need an image with the NATS modules).Verification
Local checks ran on Debian 13: the unit suites with gcc 14 (with
-D_FORTIFY_SOURCE=2) and clang 19 (-O3), against nats.c 3.15.0-beta, the SIPssert sets against an image with nats.c v3.14.0 (the pinnedinstall_libnats.shversion) and nats-server 2.11.10.-Werror, on current mastermake test-<module>), gcc and clangnats-sets)Compatibility
These are new contrib modules, with no changes to core or existing module code. Outside
modules-contrib/, the branch adds Debian and RPM packaging entries and a libnats install script, installs libnats inunittests.yml, and makesMakefile.testskip a module suite whose module was not built.Closing issues
None.