Skip to content

0.6.2

Compare
Choose a tag to compare
@josephfrazier josephfrazier released this 04 Aug 03:08
· 1714 commits to master since this release

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.