SIP.js

A simple, intuitive, and powerful JavaScript signaling library

MIT License

Downloads
62.5K
Stars
1.9K
Committers
80

Bot releases are hidden (Show)

SIP.js - 0.7.4

Published by james-criscuolo over 8 years ago

  • update several dependencies
  • change Travis testing behaviors
  • Allow overriding mediaHandlerFactory in UA#invite
  • change hold event behavior to be more usable.
  • Include REFER into allowed methods, and update REFER handling to be more in line with RFC 3515
  • remove deprecation warning about iceServers
SIP.js - 0.7.3

Published by james-criscuolo over 8 years ago

This release is mainly for changes to the Subscription logic which allow for correct behavior while unsubscribing, resubscribing, and some other edge cases. There are also several fixes to correct the build process. There are no known breaking changes, and we recommend upgrading if you are doing anything involving Subscriptions or plan to build SIP.js.

Full list of changes: https://github.com/onsip/SIP.js/compare/0.7.2...0.7.3

SIP.js - 0.7.2

Published by josephfrazier almost 9 years ago

This release is primarily intended to address the removal of MediaStream.stop() from Chrome 47. There are no known breaking changes, and we recommend upgrading to maintain full compatibility with Chrome 47.

Full list of changes: https://github.com/onsip/SIP.js/compare/0.7.1...0.7.2

SIP.js - 0.7.1

Published by josephfrazier about 9 years ago

Bug fixes:

  • Better Chrome Packaged App support: 36c1e30
  • Session 'terminated' event is emitted with multiple args instead of an object: #173
  • Registration options are preserved across re-registration: #179
  • Multiple calls to UA#start before the UA has connected are ignored: #178
  • Better iceCheckingTimeout support: 9e79141, 873c9da

New features:

  • Add closeWithHeaders option to RegisterContext#register: #181, 608407e
  • Try to renegotiate media on re-INVITE: #170
  • Support sending double-CRLF keep-alive pings: #190
  • npm run repl opens a browser with the SIP variable defined: https://github.com/onsip/SIP.js/commit/635c0ac27c763800a7eb48023bce0a62b93a0739
  • (a handful of changes to allow UDP signaling via a custom Transport.js): 9b6bbff, 9097033, 620773c, 0bce005
SIP.js - Version 0.7.0

Published by wakamoleguy over 9 years ago

As of 0.7.0, SIP.js no longer runs on browsers which do not support Promises. All WebRTC-capable browsers already support Promises, but this may affect browsers that were only supported at the signaling layer. Specifically, Internet Explorer.

Brief notes:

SIP.js - 0.6.4

Published by egreenmachine almost 10 years ago

1. Firefox 34 Support

Added a hack to allow Firefox 34 compatibility with some SIP clients. This issue is documented on FreeSWITCH Jira: https://freeswitch.org/jira/browse/FS-6955

2. Syntax sugar for rendering media

Usage:

new SIP.UA().invite('[email protected]', document.getElementsByTagName('audio')[0]);

See https://github.com/onsip/SIP.js/commit/d238523754ad4f6e2845ffd487c2961596a7c9ad

3. Support for Multiple/Zero STUN Servers

See 18ce4d8 (#93) and 28523b6 (#117)

4. Add hackWssInTransport to UA configuration to fix Asterisk problems

See 32bffbe

SIP.js - 0.6.2

Published by josephfrazier about 10 years ago

1. SIP.js can now be used as a Cordova plugin.

Caveats:

  1. iOS support is broken at the time of this commit, see joseph-onsip/sipjs-cordova#6
  2. config.xml doesn't reflect the plugin registry entry. See #83

Usage:

Shell:

  cordova plugin add com.onsip.sipjs # see https://github.com/onsip/SIP.js/issues/83
  # The following lines are needed for media support:
  cordova plugin add https://github.com/alongubkin/phonertc
  cordova plugin add com.sipjs.phonertc # This is already published to the registry

JS:

  var SIP = cordova.require('com.sipjs.sipjs');
  // The following line is needed for media support:
  var PhoneRTCMediaHandler = cordova.require('com.sipjs.phonertc.mediahandler')(SIP);
  var ua = new SIP.UA({
    // The following line is needed for media support:
    mediaHandlerFactory: PhoneRTCMediaHandler
  });

2. REFERs to non-SIP resources are supported.

Usage:
See https://github.com/onsip/SIP.js/commit/469a581f604fdcae9be6126d41fda4e1779c2b6b and https://github.com/onsip/SIP.js/commit/1406cba427a8962044526452f1b2f6f1b9cac844.

SIP.js - 0.6.1

Published by josephfrazier about 10 years ago

SIP.js - 0.6.0

Published by josephfrazier over 10 years ago

  • The syntax for the media property has changed slightly. You now need to put the constraints inside a constraints property. For example:
session.accept({
  media: {
    constraints: {
      audio: true,
      video: false
    }
  }
});
  • UA#invite and Session#accept now allow an option specifying <audio> and <video> elements within which session media will be rendered. For example:
  var session = new SIP.UA().invite('[email protected]', {
    media: {
      render: {
        remote: {
          audio: document.createElement('audio'),
          video: document.createElement('video')
        },
        local: {
          audio: document.createElement('audio'),
          video: document.createElement('video')
        }
      }
    }
  });
session.on('refer', function handleRefer (request) {
  var uri = request.parseHeader('refer-to').uri;
});
Package Rankings
Top 1.03% on Npmjs.org
Top 3.5% on Bower.io
Top 23.64% on Repo1.maven.org
Badges
Extracted from project README
npm version