git add plugin.xml

This will allow SIP.js to be used as a Cordova plugin as follows:

Shell:

  cordova plugin add com.sipjs # once it's published to the registry
  # 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
  });