Upgrading from 0.2.x
One of the most significant changes from 0.2.x version is that HTML5 video elements are not handled by JsSIP anymore. Instead, media stream handling tools are facilitated so you can freely decide when and where to attach the local and remote media Streams. For more info see JsSIP.RTCSession.
This version comes with a new concept of optional arguments, meaning that every argument in API methods wich are not mandatory, are enclosed in a JavaScript Object as the last method argument. The name of this argument is ‘options’.
The following changes must be taken into consideration when upgrading from 0.2.x to 0.3.x version.
UA Class
Configuration Parameters
outgoing_proxy_setrenamed tows_servers.stun_serverrenamed tostun_servers.
call()
- Optional arguments are passed through the new ‘options’ argument.
- HTML5 video element references are not passed anymore.
mediaTypeschanged tomediaConstraints.
sendMessage()
- Optional arguments are passed through the new ‘options’ argument.
RTCSession Class
This is the new name for the old Session Class.
Instance Properties
local_identitychanged fromStringtoJsSIP.NameAddrHeaderinstance.remote_identitychanged fromStringtoJsSIP.NameAddrHeaderinstance.
answer()
- Optional arguments are passed through the new ‘options’ argument.
- HTML5 video element references are not passed anymore.
terminate()
- Optional arguments are passed through the new ‘options’ argument.
cancel()
- Dissapears in favour of
terminate().
reject()
- Dissapears in favour of
terminate().