Library / SDK
versatica/JsSIP avatar
versatica/JsSIP

JsSIP carries SIP over WebSocket with three runtime dependencies, and its published file list names a licence file the tree does not have

JsSIP, the JavaScript SIP library

2,615 stars789 forksJavaScriptNOASSERTION

At a glance

What is it?
JsSIP is a JavaScript SIP library that runs in the browser and in Node.js, with WebRTC calls and instant messaging, and it depends on three packages: debug, events and sdp-transform. The getting started sample stops one line into its last event handler, the manifest publishes a LICENSE entry while the repository carries LICENSE.md, and the licence is reported as unasserted even though the project file and the documentation both say MIT.
Who is it for?
JsSIP fits a browser or Node application that needs a real SIP stack rather than a WebRTC-only signalling layer, particularly if your server side already speaks SIP over WebSocket.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository last received commits 33 days ago.
What is it written in?
Mainly JavaScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • versatica/JsSIP2,615 ★ · +8
Star history
Repository2026-09-292026-11-22
versatica/JsSIP2.6k2.6k

8 Stars in the last 54 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Three runtime dependencies carry the whole library

The dependency list is short enough to state in full. JsSIP depends on `debug` for logging, on the `events` package for its event emitter, and on `sdp-transform` for working with session descriptions. Everything else in the manifest is a development dependency: eslint and its flat config packages, prettier and its eslint plugin, jest with ts-jest, typedoc, esbuild, pegjs, cpx, and type definitions for debug, events, jest and node.

So a consumer of the published package installs three things and gets a SIP user agent. That is consistent with the overview, which describes a library that runs in both the browser and Node.js, carries SIP over WebSocket so that real SIP can be used in web applications, and supports audio and video calls over WebRTC plus instant messaging.

The entry points are declared separately for types and for code. Types resolve to `lib/JsSIP.d.ts` and the main module to `lib/JsSIP.js`, both under a `lib` directory that is generated rather than committed, since the source lives in `src/`.

The overview also calls the library lightweight, in the form of a bullet with an exclamation mark and no number attached to it. Nothing in the repository measures a bundle size or a memory footprint, so that word is a claim without a figure behind it.

Getting started with a SIP call

The install is a single npm command:

bash
npm install jssip

The quickstart creates a user agent, registers call event handlers and starts a call. The sample creates a WebSocket transport, builds a configuration with a socket, a SIP URI and a password, constructs the user agent and starts it:

javascript
var socket = new JsSIP.WebSocketInterface('wss://sip.myhost.com');
var configuration = {
  sockets  : [ socket ],
  uri      : 'sip:[email protected]',
  password : 'superpassword'
};

var ua = new JsSIP.UA(configuration);

ua.start();

// Register callbacks to desired call events
var eventHandlers = {
  'progress': function(e) {
    console.log('call is in progress');
  },
  'failed': function(e) {
    console.log('call failed with cause: '+ e.data.cause);
  },
  'ended': function(e) {
    console.log('call ended with cause: '+ e.data.cause);
  },
  'confirmed': function(e) {
    console.log('call confirmed');
  }
};

var options = { eventHandlers, mediaConstraints: { audio: true, video: true } };
var session = ua.call('sip:[email protected]', options);

The handler object lists four call events, and the final call uses the registered handlers and media constraints. Configure real endpoints and credentials for your environment.

The password in the configuration is a literal string in the sample, which is convenient for reading and a habit worth not copying into anything real.

Interoperability is a named list of four servers

The overview states that the library works with Kamailio, Asterisk, Mobicents, and repro, also written reSIProcate, and links an interoperability page in the documentation. That is the entire compatibility claim: four named servers, no version numbers, no test matrix.

For a signalling library, that list is the first thing to check against your own infrastructure, because a SIP stack can be standards compliant and still disagree with a particular proxy about details. The project does describe itself as written by the authors of RFC 7118, the document on using the WebSocket protocol as a transport for SIP, which is the strongest statement in the overview about why the transport behaves as it does.

The second authorship claim is the other interesting one: the same authors wrote mediasoup, a WebRTC data and media transport stack. That is why a SIP library and a WebRTC transport appear in the same project description, and it is a useful hint about the media path, since WebRTC is what carries the actual audio and video while SIP handles the signalling.

The distinction is the one worth holding on to. SIP over WebSocket is the signalling transport, WebRTC is the media, and the overview lists both capabilities as features of the same library. Instant messaging is the third, and unlike calls it needs no media path at all.

Support is split by purpose: questions and usage problems go to GitHub discussions, while bugs and feature requests go to GitHub issues.

Every script is delegated to one file, and that file ships

The manifest has no inline commands. Lint, lint with fixes, test, coverage, build, a TypeScript build, release, and three documentation tasks all call the same executable with a different argument:

code
"scripts": {
	"lint": "node npm-scripts.mjs lint",
	"test": "node npm-scripts.mjs test",
	"build": "node npm-scripts.mjs build",
	"release": "node npm-scripts.mjs release"
}

So there is one place where the actual commands live, and it is a Node script rather than a Makefile or a set of shell scripts. The same file is listed in the package's published files, alongside the generated library, the readme and a LICENSE entry. A build script that travels inside the published tarball is unusual, and it means anyone unpacking the package can see how it was produced.

That files list is also where the licensing gets interesting. It names `LICENSE`, while the repository tree contains `LICENSE.md`. A packaged file list that expects a name the repository does not use is the kind of thing that either gets resolved at publish time by a copy step nobody has written down, or ships a tarball with a missing entry.

The tree also carries `.npmignore` alongside `.npmrc`, which is the older pairing for controlling package contents, plus `package-lock.json`, so the project builds with npm's lockfile while delegating every task to its own runner.

MIT in the manifest and the documentation, unasserted in the record

Three places state a licence and one does not. The manifest carries `"license": "MIT"`, the overview section points at a licence page on the project site, and the tree has a `LICENSE.md` file. The licence reported for the repository itself is unasserted, which is what a tool sees when it looks at the record rather than at the code.

Nothing in the tree resolves that. There is no note saying the record is stale, and no second licence file with different terms, so the most likely explanation is a gap in the repository record rather than a disagreement about terms. It is still worth naming, because automated licence checks read the record.

The published file list, as noted, asks for `LICENSE` while the tree holds `LICENSE.md`, which is a separate naming question from the licence question and could be the reason a packaging check fails on an otherwise correct licence.

The remaining metadata is unremarkable and worth a glance for the versions. The package version is 3.13.8. There are no GitHub releases for the project, so the published npm version is the only version anyone can point at, and the repository's last push is dated 2026-05-06.

Contributors are listed in the manifest as two names, José Luis Millán and Iñaki Baz Castillo, while the documentation credits a third, Saúl Ibarra Corretgé, as a core designer. The tree keeps `AUTHORS.md` and `THANKS.md` for the longer version of that accounting.

Lint, tests and docs each got their own config file

The root is a pile of configuration files, and each tool family has one. There is an eslint flat config as `eslint.config.mjs`, a jest config as `jest.config.mjs`, and a typedoc config as `typedoc.config.mjs`. Two TypeScript configs sit side by side: `tsconfig.json` for the build and `tsconfig.eslint.json` for the linter, which is the usual arrangement when the two tools disagree about what to include. Formatting is handled by a `.prettierrc` with prettier wired into eslint through its plugin, and lint fixing is exposed as a separate script.

The documentation side has three scripts rather than one. There is a docs build, a docs watch mode, and a docs check, which is the one worth noting: it means the documentation can be validated in CI rather than only read. A `docs-assets/` directory holds the images and media those docs use, and `BUILDING.md` documents the build.

The test stack is worth a note on versions. The manifest pairs jest at 30.x with ts-jest at 29.x, which is a one major version apart pairing of a test runner and its TypeScript transformer. `open-cli` appears in the development dependencies, and pegjs, which is a parser generator, is there rather than a hand written parser.

Coverage is a first class script rather than a flag on the test task, so the report is produced by its own entry point.

Editorial conclusion

JsSIP fits a browser or Node application that needs a real SIP stack rather than a WebRTC-only signalling layer, particularly if your server side already speaks SIP over WebSocket. Check four things first: the interoperability claim is a named list of four servers rather than a test matrix, so check your own proxy against that list; the quickstart sample is incomplete, ending inside its last event handler, so the full call flow has to come from the documentation; the package publishes a LICENSE file entry while the repository holds LICENSE.md, which is worth checking if your build verifies packaged contents; and the licence reported for the repository is unasserted while the manifest and the documentation both state MIT. Anyone who needs TypeScript definitions will find them at the declared types path, generated by typedoc and ts-jest rather than hand written.

Frequently asked questions

What is versatica/JsSIP?

A JavaScript SIP library that runs in the browser and in Node.js, carrying SIP over WebSocket so real SIP can be used in web applications, with WebRTC audio and video calls and instant messaging.

Which SIP servers does JsSIP work with?

The project names Kamailio, Asterisk, Mobicents and repro, also written reSIProcate, and points to an interoperability page in its documentation. No version matrix is given.

How do I install JsSIP, and what are its entry points?

It is published to npm as jssip and installed with `npm install jssip`. The manifest version is 3.13.8, the main module is lib/JsSIP.js and the type definitions are at lib/JsSIP.d.ts.

What does the JsSIP package depend on at runtime?

Three packages: debug, events and sdp-transform. Everything else in the manifest, including jest, eslint, prettier, typedoc, esbuild and pegjs, is a development dependency.

Where do JsSIP users get help and documentation?

Documentation and an online demo are hosted on jssip.net. Questions and usage problems go to GitHub discussions, and bugs or feature requests go to GitHub issues. The authors also wrote RFC 7118 on WebSocket as a transport for SIP, and mediasoup.

Official sources

  1. Issues
  2. Project website
  3. README
  4. versatica/JsSIP on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/versatica-jssip.svg)](https://hysenlabs.com/projects/versatica-jssip)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/versatica-jssip.svg)](https://hysenlabs.com/projects/versatica-jssip)

Was this useful?