- The syntax for the
media
property has changed slightly. You now need to put the constraints inside aconstraints
property. For example:
session.accept({
media: {
constraints: {
audio: true,
video: false
}
}
});
UA#invite
andSession#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('welcome@onsip.com', {
media: {
render: {
remote: {
audio: document.createElement('audio'),
video: document.createElement('video')
},
local: {
audio: document.createElement('audio'),
video: document.createElement('video')
}
}
}
});
- The
Session
'sreferred
event has been removed. See the commit message of 3115223 for an alternative. - The
Session
'srefer
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;
});
- If your application calls SIP.WebRTC.* functions directly, it should first call SIP.WebRTC.isSupported to ensure they are available.
- Using string constants for the
rel100
UA Configuration Parameter has been deprecated (but still works for now). Applications should useSIP.C.supported
constants instead. See http://sipjs.com/api/0.6.0/ua_configuration_parameters/#rel100