A simple, intuitive, and powerful JavaScript signaling library
MIT License
Bot releases are visible (Hide)
Published by james-criscuolo over 8 years ago
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
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
Published by josephfrazier about 9 years ago
Bug fixes:
Session
'terminated' event is emitted with multiple args instead of an object: #173UA#start
before the UA
has connected are ignored: #178iceCheckingTimeout
support: 9e79141, 873c9daNew features:
closeWithHeaders
option to RegisterContext#register
: #181, 608407enpm run repl
opens a browser with the SIP variable defined: https://github.com/onsip/SIP.js/commit/635c0ac27c763800a7eb48023bce0a62b93a0739
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:
options.media.render
argument to UA#invite
and Session#accept
no longer has audio
/video
subfields. See MediaHandler#render
require('ws')
. Thanks to Browserify, this shouldn't affect most users. Node.js users will have one less thing to worry about. https://github.com/onsip/SIP.js/commit/16bb9d0e44ddc50ce39fe16aba066e187b6dd329
promiscuous
, or Node.js native Promises if available.terminated
method. (Okay, it's not new, but we fixed how it works and document it now.)rejected
, failed
, cancel
, bye
, and terminated
) have been cleaned up and now behave more consistently, both in terms of internal behavior and RFC specs. https://github.com/onsip/SIP.js/commit/6d8d79bec1ca6f9a6ebefdcc44c3aab46d2876a2
Published by egreenmachine almost 10 years ago
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
Usage:
new SIP.UA().invite('[email protected]', document.getElementsByTagName('audio')[0]);
See https://github.com/onsip/SIP.js/commit/d238523754ad4f6e2845ffd487c2961596a7c9ad
See 18ce4d8 (#93) and 28523b6 (#117)
See 32bffbe
Published by josephfrazier about 10 years ago
Caveats:
config.xml
doesn't reflect the plugin registry entry. See #83Usage:
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
});
Usage:
See https://github.com/onsip/SIP.js/commit/469a581f604fdcae9be6126d41fda4e1779c2b6b and https://github.com/onsip/SIP.js/commit/1406cba427a8962044526452f1b2f6f1b9cac844.
Published by josephfrazier about 10 years ago
SIP
will be defined globally. See the Google Group thread for more detail.
Published by josephfrazier over 10 years ago
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
's referred
event has been removed. See the commit message of https://github.com/onsip/SIP.js/commit/3115223d0482dcfdb278da956d61da18d099c6b2 for an alternative.Session
's refer
event handler's first argument is now a request, not a uri. The uri can be obtained as follows:session.on('refer', function handleRefer (request) {
var uri = request.parseHeader('refer-to').uri;
});
rel100
UA Configuration Parameter has been deprecated (but still works for now). Applications should use SIP.C.supported
constants instead. See http://sipjs.com/api/0.6.0/ua_configuration_parameters/#rel100