---
title: SIP.js 0.7.0 Adds Fixes and Support for Attended Transfer - Recommended Upgrade
description: SIP.js 0.7.0 is now the most stable
---

[OnSIP News | OnSIP ](https://www.onsip.com/voip-news/onsip-news)

# [SIP.js 0.7.0 Adds Fixes and Support for Attended Transfer - Recommended Upgrade](https://www.onsip.com/voip-news/onsip-news/sipjs-070-adds-fixes-and-support-for-attended-transfer-recommended-upgrade)

 Written by [Joseph Frazier](https://www.onsip.com/voip-news/onsip-news/author/joseph-frazier) | May 11, 2015 at 5:33 PM

We have just released a new version of [SIP.js](http://sipjs.com/), our SIP Javascript stack that's perfect for developers who want to build WebRTC-based features. [SIP.js 0.7.0](https://github.com/onsip/SIP.js/releases/tag/0.7.0) is now the most stable, comprehensive version of the library to date.

"SIP.js 0.7.0 is a minor version bump from 0.6.4," said OnSIP Developer Joseph Frazier. "It contains Attended Transfer support, improved Session and MediaHandler events, and a handful of other bug fixes. We recommend that all users upgrade to this latest version."

### Here are some highlighted improvements:

- Our WebSocket dependency is now included using `require('ws')`.  Thanks to [Browserify](http://browserify.org/), this shouldn't affect most users. Node.js users will have one less thing to worry about.
- We are now using Promises internally.  This has been the case on the Master branch for some time.  Node.js users will be polyfilled to use `promiscuous`, or Node.js native Promises if available.
- We are now using the Node.js native EventEmitter, bundled in Browserify.  There are slight changes to the EventEmitter API due to this change, but old methods are supported (though deprecated) for now.
- Session has a new `terminated` method.  (Okay, it's not new, but we fixed how it works and document it now.)
- Session termination events (`rejected`, `failed`, `cancel`, `bye`, and `terminated`) have been cleaned up and now behave more consistently, both in terms of internal behavior and RFC specs.
- The WebRTC MediaHandler now has many more events for ICE connection states and candidate gathering.
- Support for REFER with Replaces and INVITE with Replaces.
- A handful of other bug fixes.

So check it out! Grab [SIP.js 0.7.0](https://github.com/onsip/SIP.js/releases/tag/0.7.0) today.

[View full post](https://www.onsip.com/voip-news/onsip-news/sipjs-070-adds-fixes-and-support-for-attended-transfer-recommended-upgrade)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Joseph Frazier"
  },
  "dateModified" : "2020-01-03T16:54:35.062Z",
  "datePublished" : "2015-05-11T17:33:00Z",
  "headline" : "SIP.js 0.7.0 Adds Fixes and Support for Attended Transfer - Recommended Upgrade",
  "image" : {
    "@type" : "ImageObject",
    "height" : 800,
    "url" : "https://info.onsip.com/hubfs/images/Blog%20Images/Featured%20Images/SIPjs%20Announcement%20Featured%20Image.jpg",
    "width" : 1200
  },
  "mainEntityOfPage" : "https://www.onsip.com/voip-news/onsip-news/sipjs-070-adds-fixes-and-support-for-attended-transfer-recommended-upgrade",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "OnSIP News"
  }
}
```