JsSIP is a JavaScript SIP stack for web apps and Node.js. It carries SIP over WebSocket and supports WebRTC audio, video, and instant messaging.
Overview
JsSIP lets developers embed Session Initiation Protocol calling and messaging in JavaScript applications. It runs in web browsers and in Node.js, so the same library can power client-side SIP user agents or server-side tooling.
The library implements SIP transport over WebSocket, which the project describes as real SIP on the web without protocol conversion. It uses the browser WebRTC stack for real-time audio and video, without plugins. A JavaScript API exposes control over SIP session logic for custom applications.
JsSIP is designed to interoperate with common SIP servers and proxies, including Kamailio, Asterisk, OfficeSIP, OverSIP, Mobicents, and repro (reSIProcate). The authors contributed to RFC 7118 and OverSIP. Documentation, demos, and an online try-it demo are available on the project site.
The project is distributed as an npm package and is aimed at teams building VoIP or messaging features directly into web or Node.js code rather than deploying a separate telephony server product.
Key features
- SIP over WebSocket transport
- WebRTC audio and video calls
- Instant messaging over SIP
- Browser and Node.js runtime support
- JavaScript user agent API
- Interop with Kamailio and Asterisk
- Pure JavaScript implementation
- Online demo and documentation
Use cases
- SIP calling in web applications
- WebRTC video conferencing clients
- Browser-based instant messaging
- Custom SIP user agents in Node.js