sipml5 client one side not hanging up

1k Views Asked by At

I have a sipml5 web client and I can successfully make a call to it. But when a caller hangs up, the web client is not hanging the call. I think I missed an event for this in the sipml5 API. I got this error in chrome console,

this.o_local_stream.stop is not a function  

But I'm not sure how to fix this.

2

There are 2 best solutions below

1
Nijeesh On

This happens in chrome versions > 45 due to certain mediastream deprecations. In newer versions of chrome MediaStream.stop() is deprecated and replaced by MediaStreamTrack.stop(). sipML5 API has not yet been modified to accept these changes. https://github.com/DoubangoTelecom/sipml5/issues/231

Just checkout this link for more info.
0
Sibin John Mattappallil On

My problem solved when I updated the library.

I used: https://raw.githubusercontent.com/DoubangoTelecom/sipml5/master/release/SIPml-api.js