Skip to content

oh-sipclient-card drops the connection, when the active tab is changed in Firefox, contary to other websockets-browser SIP clients #4355

Description

@dilyanpalauzov

I connect over SIP and WebSockets and dial +437200101011. This is ENUM service, described at http://enum-test.at/index_en.html.

When I use in Firefox the website https://sip.bapha.be to dial +437200101011, it works (I hear sound), and I continue to hear sound when I switch to a different application (Firefox is not active), or when within Firefox I switch to a different tab. The webpage https://sip.bapha.be is only-browser based, serving static content, apart from the websocket connection, adjusted by https://sip.bapha.be/scripts/config.js, running SIP.js and the actual software is ctxSip, last changed eight years ago.

In openHAB 5.2.0 I configure a SIP widget, without local settings, with

component: oh-sipclient-card
config:
  disableRegister: true
  domain: bapha.be
  enableSIPDebug: true
  password: **hidden**
  phonebook: +437200101011=Music test
  title: Telephone
  username: **hidden**
  websocketUrl: wss://sip.bapha.be/ws/

When I dial the same number +437200101011, I again hear sound. However when I change the active tab in Firefox, or switch to an application, different from Firefox, the sound stops.

The problem report is that oh-sipclient-card should not drop the connection, when the active tab in Firefox is changed, or the active application on the desktop is changed from Firefox to something else. As a different webbrowser-client does not drop the connection, this is a problem in oh-sipclient-card, not in the websockets-server, not a problem of Firefox.

N.B. Sometimes this websocket does not work on the first try, the user has to redial, and then it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmain uiMain UI

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions