• Stars
    star
    2,316
  • Rank 19,067 (Top 0.4 %)
  • Language
    JavaScript
  • License
    Other
  • Created almost 12 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

JsSIP, the JavaScript SIP library

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:[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'    : eventHandlers,
  'mediaConstraints' : { 'audio': true, 'video': true }
};

var session = ua.call('sip:[email protected]', 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.

More Repositories

1

mediasoup

Cutting Edge WebRTC Video Conferencing
C++
5,764
star
2

mediasoup-demo

mediasoup official demo application
JavaScript
985
star
3

mediasoup-client

mediasoup client side JavaScript library
TypeScript
542
star
4

OverSIP

OverSIP: the SIP framework you dreamed about
C
343
star
5

libmediasoupclient

mediasoup client side C++ library
C++
272
star
6

protoo

Minimalist and extensible Node.js signaling framework for multi-party Real-Time applications
JavaScript
162
star
7

mediasoup-broadcaster-demo

mediasoup broadcaster demo (libmediasoupclient)
C++
96
star
8

tryit-jssip

New tryit-jssip application
JavaScript
80
star
9

mediasoup-client-aiortc

mediasoup-client handler for aiortc Python library
TypeScript
47
star
10

h264-profile-level-id

Utility to process H264 profile-level-id values
TypeScript
46
star
11

mediasoup-sdp-bridge

Node.js library to allow integration of SDP based clients with mediasoup
JavaScript
41
star
12

rtp.js

RTP stack for Node and browser written in TypeScript
TypeScript
40
star
13

awaitqueue

JavaScript utility to enqueue async tasks for Node.js and the browser
TypeScript
31
star
14

RetroRTC

WebRTC made retro.
JavaScript
22
star
15

jssip-node-websocket

JsSIP.Socket interface for the Node.js based on the websocket module
JavaScript
18
star
16

mediasoup-website

Website of mediasoup
SCSS
13
star
17

pick-port

Get a free TCP or UDP port for the given IP address
TypeScript
9
star
18

jssip.net

JsSIP website
JavaScript
9
star
19

oversip-mod-mysql

A MySQL connector module for OverSIP
Ruby
6
star
20

oversip-mod-postgresql

A PostgreSQL connector module for OverSIP
Ruby
5
star
21

TrendCalculator

An algorithm to ease off decreasing values based on a constant factor, an elapsed time and (probably) also on currently highest value seen
C++
1
star