powered by Jive Software

OHUN plugin problem

Some time ago, I reported a problem with the ohun plugin
( became unstable , the Audio conference room screen goes out and back constantly )

  1. I recently re-installed this app and the problem continues.
    I checked the system console for the following report (2 errors and warnings):

index.js:315 credentials {username: ‘usuario’, password: ‘xyzhut’, conUrl: ‘wss://payback.servehttp.com:7443/ws/’} usuario@payback.servehttp.com <XRD xmlns=​"http:​/​/​docs.oasis-open.org/​ns/​xri/​xrd-1.0">​<Link rel=​"urn:​xmpp:​alt-connections:​xbosh" href=​"https:​/​/​payback.servehttp.com:​7443/​http-bind/​">​​<Link rel=​"urn:​xmpp:​alt-connections:​websocket" href=​"wss:​/​/​payback.servehttp.com:​7443/​ws/​">​​​
index.js:177 XMPPConnection.connect 1
webmanifest.json:1

   **(ERROR)** GET https://payback.servehttp.com:7443/ohun/webmanifest.json 401 (Unauthorized)

webmanifest.json:1

   **(ERROR)** Manifest: Line: 1, column: 1, Syntax error.

​ OPEN MessageEvent {isTrusted: true, data: “<open from=‘payback.servehttp.com’ id=‘9xthx3jkdg’…ml:ns:xmpp-framing’ xml:lang=‘en’ version=‘1.0’/>”, origin: ‘wss://payback.servehttp.com:7443’, lastEventId: ‘’, source: null, …}
​ OPEN MessageEvent {isTrusted: true, data: <stream:features xmlns:stream='http://etherx.jabbe…38kSEf3abtapzPOKKmmzRQIGKXA="/></stream:features>, origin: ‘wss://payback.servehttp.com:7443’, lastEventId: ‘’, source: null, …}

  1. I researched this subject on the internet and changed the instruction of the file /ohun/cliente/index.html

from :
to :

I checked the system console for the following report (0 error, 1 alert and warnings):

index.js:20 [Violation]‘load’ handler took 152ms
index.js:315 credentials {username: ‘usuario’, password: ‘xyzhut’, conUrl: ‘wss://payback.servehttp.com:7443/ws/’} kleber@payback.servehttp.com <XRD xmlns=​"http:​/​/​docs.oasis-open.org/​ns/​xri/​xrd-1.0">​<Link rel=​"urn:​xmpp:​alt-connections:​xbosh" href=​"https:​/​/​payback.servehttp.com:​7443/​http-bind/​">​​<Link rel=​"urn:​xmpp:​alt-connections:​websocket" href=​"wss:​/​/​payback.servehttp.com:​7443/​ws/​">​​​
index.js:177 XMPPConnection.connect 1
stophe.min.js:1 OPEN MessageEvent {isTrusted: true, data: “<open from=‘payback.servehttp.com’ id=‘37zctf5rs5’…ml:ns:xmpp-framing’ xml:lang=‘en’ version=‘1.0’/>”, origin: ‘wss://payback.servehttp.com:7443’, lastEventId: ‘’, source: null, …}
stophe.min.js:1 OPEN MessageEvent {isTrusted: true, data: <stream:features xmlns:stream='http://etherx.jabbe…38kSEf3abtapzPOKKmmzRQIGKXA="/></stream:features>, origin: ‘wss://payback.servehttp.com:7443’, lastEventId: ‘’, source: null, …}
[Violation]‘message’ handler took 4805ms
index.js:177 XMPPConnection.connect 5
index.js:163

   **(ALERT)** getting turn credentials failed <iq xmlns=​"jabber:​client" type=​"error" id=​"1:​sendIQ" from=​"payback.servehttp.com" to=​"usuario@payback.servehttp.com/​37zctf5rs5">​…​</iq>​

(anônimo) @ index.js:163
(anônimo) @ stophe.min.js:1
run @ stophe.min.js:1
(anônimo) @ stophe.min.js:1
forEachChild @ stophe.min.js:1
_dataRecv @ stophe.min.js:1
_onMessage @ stophe.min.js:1
index.js:331 candidate RTCIceCandidate {candidate: ‘candidate:411095253 1 udp 2122260223 172.19.64.1 62765 typ host generation 0 ufrag BWSH network-id 1’, sdpMid: ‘0’, sdpMLineIndex: 0, foundation: ‘411095253’, component: ‘rtp’, …}
index.js:331 candidate RTCIceCandidate {candidate: ‘candidate:2222700650 1 udp 2122194687 192.168.1.10…eration 0 ufrag BWSH network-id 2 network-cost 10’, sdpMid: ‘0’, sdpMLineIndex: 0, foundation: ‘2222700650’, component: ‘rtp’, …}
index.js:331 candidate RTCIceCandidate {candidate: ‘candidate:1443048485 1 tcp 1518280447 172.19.64.1 …ptype active generation 0 ufrag BWSH network-id 1’, sdpMid: ‘0’, sdpMLineIndex: 0, foundation: ‘1443048485’, component: ‘rtp’, …}
index.js:331 candidate RTCIceCandidate {candidate: ‘candidate:3405268122 1 tcp 1518214911 192.168.1.10…eration 0 ufrag BWSH network-id 2 network-cost 10’, sdpMid: ‘0’, sdpMLineIndex: 0, foundation: ‘3405268122’, component: ‘rtp’, …}
index.js:331 candidate null
index.js:177 XMPPConnection.connect 6

The /ohun/client/index.js:163 statement contains: console.warn(‘getting turn credentials failed’, err);
which is in function (err) { console.warn(‘getting turn credentials failed’, err); start(); }
Note[1] - It seems that it is constantly initializing [ start() ] due to credential failure.
Note[2] - see full function below

function getStunTurn()
{
window.connection.sendIQ($iq({type: ‘get’, to: window.connection.domain}).c(‘services’, {xmlns: ‘urn:xmpp:extdisco:1’}).c(‘service’, {host: ‘turn.’ + window.connection.domain}), function (res)
{
console.debug(‘getStunTurn - getStunAndTurnCredentials’, res);
configuration.iceServers = [];

    res.querySelectorAll('service').forEach(function (el)
    {
        console.debug('getStunTurn - getStunAndTurnCredentials - item', el);
        var dict = {};

        switch (el.getAttribute('type'))
        {
        case 'stun':
            dict.url = 'stun:' + el.getAttribute('host');
            if (el.getAttribute('port')) {
                dict.url += ':' + el.getAttribute('port');
            }
            configuration.iceServers.push(dict);
            break;
        case 'turn':
            dict.url = 'turn:';

            if (el.getAttribute('username')) {
                dict.username = el.getAttribute('username');
            }
            dict.url += el.getAttribute('host');

            if (el.getAttribute('port')) {
                dict.url += ':' + el.getAttribute('port');
            }
            if (el.getAttribute('transport')) {
                dict.url += '?transport=' + el.getAttribute('transport');
            }
            if (el.getAttribute('password')) {
                dict.credential = el.getAttribute('password');
            }
            configuration.iceServers.push(dict);
            break;
        }
    });

    if (configuration.iceServers.length > 0)
    {
        configuration.iceTransportPolicy = 'relay';
        console.debug('getStunTurn - getStunAndTurnCredentials - config', configuration);
    }
    start();

}, **function (err) {**

** console.warn(‘getting turn credentials failed’, err);**
** start();**
});
}

Does anyone know how to solve this problem?
Thank you for your attention,
Kleber
Note - This text was translated by google