github onsip/SIP.js 0.6.2

latest releases: 0.21.2, 0.21.1, 0.21.0...
9 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 469a581 and 1406cba.

Don't miss a new SIP.js release

NewReleases is sending notifications on new releases.