The OnSIP developers are proud to announce a new release of their SIP Javascript stack, SIP.js. With over 80+ commits and 46 resolved Github issues during the past two months, SIP.js 0.6.0 is now the most stable, comprehensive version of the library to date. Here are some highlighted improvements:
npm install sip.js or bower install sip.js is all you need to get the SIP.js distributable for your app.<span style="color:#080;font-weight:bold">var</span> ua = <span style="color:#080;font-weight:bold">new</span> SIP.<span style="color:#06B;font-weight:bold">UA</span>();
ua.<span style="color:#06B;font-weight:bold">message</span>(
<span style=" color:#ea4b35;"><span style="color:#710">'</span>will@example.onsip.com<span style="color:#710">'</span></span>,
<span style=" color:#ea4b35;"><span style="color:#710">'</span>Hello, world!<span style="color:#710">'</span></span>
);
<span style="color:#080;font-weight:bold">var</span> session = ua.<span style="color:#06B;font-weight:bold">invite</span>(<span style=" color:#ea4b35;"><span style="color:#710">'</span>will@example.onsip.com<span style="color:#710">'</span></span>);
session.<span style="color:#06B;font-weight:bold">on</span>(<span style=" color:#ea4b35;"><span style="color:#710">'</span>accepted<span style="color:#710">'</span></span>, function () {
this.<span style="color:#06B;font-weight:bold">bye</span>();
});
SIP.js sample code
We also have some exciting changes planned for our next major release: