QoffeeSIP is a complete Javascript SIP stack that can be used in a website to exploit all the multimedia capabilities of WebRTC technology. Instead of using pure Javascript, QoffeeSIP has been coded with CoffeeScript so you can easily modify it to suit your needs.
GNU Lesser General Public License v3.0
27
stars
5
forks
source link
Trying to register automatically with the webserver if webserver connection is lost #14
Hi All,
I am trying to implementation some sort of automatic reregistration when the websocket is closed.
.
When websocket is getting closed, we are getting callback on onclose() in qoffeesip.js
Now we are triggering one event in webphone.js. There we are able to create the user object again and trying to register
However, the next event is not getting triggered if the webserver is till down.
Here is what I have done in webphone.js
UI.prototype.renderWebsocketClosed = function(message) { console.log("WebSocket is closed now, try re-register");
Any idea why this websocket closed call back is not hitting the second time.