JavaScript Xmpp Client STUN problem

Hello,
i have a working STUN(coturn) stun/turn server that is tested with major XMPP clients.
However with ojsxc doesn’t work.

Settings in admin section checked multiple times but debug in my stun server doesn’t show any session created for ojsxc.

Nextcloud 12 with latest ojsxc version.

Seems that it doesn’t make any request to stun/turn.

Does anyone can point me to debug this issue or is it related to any bug?

Which action did you try which should trigger a stun request?

Just config my stun server in admin settings…then try to make a video call between i client in lan and one with pubblic connection…in stun log no session has been estabilished and video call fails.

Tried with both shared secret and username and password…same settings with other client works well.

Seems no request starts from ojsxc to Stun.

Thanks

Please open your js console and execute jsxc.options.get('RTCPeerConfig') to see if those nc settings are passed to jsxc. Otherwise try to clear your local storage (browser history).

Hello,
execute…and this is the resukt:
bject { ttl: 3600, url: “/index.php/apps/ojsxc/ajax/getTurnC…”,
withCredentials: false, iceServers: Array[1] }

also when history cleared…

What does this mean?

sorry…this is the right response…and it reports the right stun
address…but does not work…

Adding debug for your reference

See below:

      JQMIGRATE: Migrate is installed, version 1.4.0  core.js:7:542

State changed to INITIATING jsxc.js:183:10
i18next: languageChanged en jsxc.dep.js:48154:7728
i18next: initialized Object { debug: true, initImmediate: true, ns:
Array[1], defaultNS: Array[1], fallbackLng: Array[1], fallbackNS: false,
whitelist: false, nonExplicitWhitelist: false, load: “all”, preload: false,
19 more… } jsxc.dep.js:48154:7728
State changed to PREVCONFOUND jsxc.js:183:10
check master jsxc.js:183:10
undefined content.js:2:5
I am master. jsxc.js:183:10
State changed to ESTABLISHING jsxc.js:183:10
Try to attach jsxc.js:183:10
SID: 9747d4e5-14f9-4aaa-b2e9-bfdb8800d671 jsxc.js:183:10
ATTACHED: null jsxc.js:183:10
Discover muc service jsxc.js:183:10
UI State changed to INITIATING jsxc.js:183:10
discover http upload service jsxc.js:183:10
Send presence jsxc.js:165:13
Update file transfer icons for user@domain jsxc.js:183:10
webrtc.initWindow jsxc.js:183:10
Update icon user@domain jsxc.js:165:13
UI State changed to READY jsxc.js:183:10
DSA key loaded jsxc.js:183:10
State changed to READY jsxc.js:183:10

<body rid="233382209" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13

<body rid="233382210" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
<
jsxc.js:1094:13
XML Parsing Error: not well-formed
Location:
Line Number 1, Column 168: (unknown):1:168
onUserMediaSuccess jsxc.js:183:10
media ready for outgoing call jsxc.js:183:10
close dialog jsxc.js:183:10
i18next::translator: missingKey en translation No_video_signal
jsxc.dep.js:48154:7728
[Webrtc] Initiate call jsxc.js:165:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Changing session
state to: pending jsxc.js:165:13
onaddstream is deprecated! Use peerConnection.ontrack instead.
jsxc.dep.js:34333
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Discovered new ICE
candidate jsxc.js:165:13

<body rid="233382211" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Discovered new ICE
candidate jsxc.js:165:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: ICE end of
candidates jsxc.js:165:13
<
jsxc.js:1094:13

<body rid="233382212" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
<
jsxc.js:1094:13
<
jsxc.js:1094:13

<body rid="233382213" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
[JINGLE][log:debug] 8743c03a-4fba-4b68-b5b0-6c2db870f075: session-info
jsxc.js:165:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Outgoing session
is ringing jsxc.js:165:13
[Webrtc] ringing… jsxc.js:165:13

<body rid="233382214" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
<
jsxc.js:1094:13
<
jsxc.js:1094:13

<body rid="233382215" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
<
jsxc.js:1094:13
[JINGLE][log:debug] 8743c03a-4fba-4b68-b5b0-6c2db870f075: session-accept
jsxc.js:165:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Changing session
state to: active jsxc.js:165:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Stream added
jsxc.js:165:13
[Webrtc] Remote stream for session 8743c03a-4fba-4b68-b5b0-6c2db870f075
added. jsxc.js:165:13
[Webrtc] Use remote video device. jsxc.js:165:13
[Webrtc] No remote audio device jsxc.js:165:13

<body rid="233382216" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
<
jsxc.js:1094:13
[JINGLE][log:debug] 8743c03a-4fba-4b68-b5b0-6c2db870f075: transport-info
jsxc.js:165:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Changing
connection state to: connecting jsxc.js:165:13
connection state for 8743c03a-4fba-4b68-b5b0-6c2db870f075 connecting
jsxc.js:165:13

<body rid="233382217" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
<
jsxc.js:1094:13

<body rid="233382218" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
[JINGLE][log:debug] 8743c03a-4fba-4b68-b5b0-6c2db870f075:
session-terminate jsxc.js:165:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Terminating
session jsxc.js:165:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Stream removed
jsxc.js:165:13
[Webrtc] Remote stream for undefined removed. jsxc.js:165:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Changing
connection state to: disconnected jsxc.js:165:13
connection state for 8743c03a-4fba-4b68-b5b0-6c2db870f075 disconnected
jsxc.js:165:13
[JINGLE][log:info] 8743c03a-4fba-4b68-b5b0-6c2db870f075: Changing session
state to: ended jsxc.js:165:13
[Webrtc] call terminated user@domain/Name Chat failed-transport
jsxc.js:165:13
close dialog jsxc.js:183:10
i18next::translator: missingKey en translation
jingle_reason_failed-transport jingle_reason_failed-transport
jsxc.dep.js:48154:7728
RTCPeerConnection.getLocalStreams/getRemoteStreams are deprecated. Use
RTCPeerConnection.getSenders/getReceivers instead. jsxc.dep.js:14690:23
Invalid URI. Load of media resource failed. files

<body rid="233382219" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
<
jsxc.js:1094:13
[JINGLE][log:error] Unknown session jsxc.js:165:13

<body rid="233382220" xmlns="http://jabber.org/protocol/httpbind"

sid=“9747d4e5-14f9-4aaa-b2e9-bfdb8800d671”> jsxc.js:1097:13
<
Do you have any related entries in your XMPP server log or your host system
(e.g. nextcloud, sogo, …)? Seems not

Please check chrome://webrtc-internals in Chrome or about:webrtc in Firefox to get deeper insides of this webrtc stuff.

Btw. are video calls working?

internally of course…while when one client is in a public network o
mobile one…not…a connection is estabilished but no video…after few
seconds the calls goes down…

Done…but for my skills this is too much complex to debug…i can attach
it.

Are u able to see anything wrong?

You can’t post attachments via email on this board.

oh sorry…what can i do to have an help on this?

Hello everybody,
any chance to help me debug this matter?

Thanks

any chance to help me debug this matter?

From my point of view jsxc works as expected and I have no further time to investigate this. The next version will update all webrtc dependencies, so maybe this will fix this issue.

ok i will wait and test it…any scheduled date?

Ledfan is currently working on the internal server to fix a presence bug and after this, we are good to go.