2014-10-21: JsSIP 0.4.0 Released
JsSIP version 0.4.0 has been released. This version includes several bug fixes, improvements and some API changes.
Check the list of changes in this release.
New features
- Hold/unhold/mute/unmute API for
RTCSessionalong with newhold,unhold,muteandunmuteevents identifying which dialog party has performed such an action.- Yes, the SDP media direction attributes are inspected and mangled as required.
- Can receive initial INVITE or in-dialog re-INVITE/UPDATE requests without SDP offer. JsSIP will send the SDP offer in the 200 OK and expect the SDP answer in the ACK.
Migrating from 0.3.x to 0.4.x
Migrating from 0.3.x to 0.4.x requires changes in your application code:
RTCSessionclass no longer emitsstartedevent but now it emits two different events:accepted: 200 SIP response has been received/sent.confirmed: The ACK for the 200 SIP response has been sent/received.
UA.register()no longer accepts extra headers as argument. Instead get theRegistratorinstance of your UA viaUA.registrator()and callsetExtraHeaders()orsetExtraContactParams()on it.