Skip to content
JsSIP, the JavaScript SIP library
JavaScript
Branch: master
Clone or download
Latest commit fc73ea1 Oct 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add gitHub issue template. Nov 21, 2017
dist 3.3.11 Oct 24, 2019
lib RTCSession: don't relay on 'icecandidate' event with null candidate (#… Oct 24, 2019
test Fix NameAddrHeader display_name handling (#573) Apr 12, 2019
.babelrc 3.2.15: Remove webrtc-adapter and update dependencies Oct 11, 2018
.eslintignore ES: eslint Aug 17, 2017
.eslintrc.js .eslintrc: fix sourceType Dec 18, 2017
.gitignore 3.2.15: Remove webrtc-adapter and update dependencies Oct 11, 2018
.npmignore 3.3.5: remove .babelrc from NPM package (related to #489) Feb 26, 2019
.npmrc
.travis.yml .travis.yml: fix the fix Dec 18, 2018
AUTHORS.md AUTHORS to markdown. Feb 15, 2013
BUILDING.md s/http/https/g Dec 22, 2018
CHANGELOG.md 3.3.11 Oct 24, 2019
LICENSE
README.md s/http/https/g Dec 22, 2018
THANKS.md
banner.txt
gulpfile.js
package.json 3.3.11 Oct 24, 2019

README.md

Build Status Code Quality: Javascript Total Alerts

Overview

NOTE

Starting from 3.0.0, JsSIP no longer includes the rtcninja module. However, the jssip-rtcninja package is based on the 2.0.x branch, which does include rtcninja.

Support

Getting Started

The following simple JavaScript code creates a JsSIP User Agent instance and makes a SIP call:

// Create our JsSIP instance and run it:

var socket = new JsSIP.WebSocketInterface('wss://sip.myhost.com');
var configuration = {
  sockets  : [ socket ],
  uri      : 'sip:alice@example.com',
  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'    : eventHandlers,
  'mediaConstraints' : { 'audio': true, 'video': true }
};

var session = ua.call('sip:bob@example.com', options);

Want to see more? Check the full documentation at https://jssip.net/documentation/.

Online Demo

Check our Tryit JsSIP online demo:

Website and Documentation

Download

Authors

José Luis Millán

Iñaki Baz Castillo

Saúl Ibarra Corretgé

License

JsSIP is released under the MIT license.

You can’t perform that action at this time.