0.6.2
1. SIP.js can now be used as a Cordova plugin.
Caveats:
- iOS support is broken at the time of this commit, see joseph-onsip/sipjs-cordova#6
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
});