Re: [discuss-webrtc] WebRTC UA, Without STUN/TURN servers, non-local media still shared correctly?

376 views
Skip to first unread message
Message has been deleted

Kaiduan Xie

unread,
Jul 11, 2022, 9:53:04 AM7/11/22
to discuss...@googlegroups.com
Because Asterisk is on public IP, Asterisk can figure out the NAT address of the webRTC client behind the firewall even though STUN is not used in the webRTC client.

/Kaiduan

On Sun, Jul 10, 2022 at 7:35 AM Wadii ELMAJDI <wa...@evenmedia.fr> wrote:
Without Stun/Turn servers configured, the only candidates you might get from onicecandidate are "host" type, which technically is your local ip address.

For my case :
type:host # address:192.168.1.56 # port:57934
type:host # address:192.168.1.56 # port:9

I have a WebRTC UserAgent (SIPJS Library) behind a firewall, connected to a B2BUA (Freepbx to be more precise) via 8089 wss for signaling. The asterisk server is cloud based, with a public ip address (No stun).

I have not configured any Stun/Turn Server on my SIPJs peerConnectionConfiguration, and still my webRTC client is able to share RTP media with Asterisk with no problem.

How is that possible ? is there any built-in stun server on the browser in case no stun server is configured ? Do i really need a Stun server in such use case ?

Thank you

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/cc270a18-a7d7-4a59-8e82-fce63a21befdn%40googlegroups.com.


--
Founder of Goodstartsoft
Message has been deleted

Kaiduan Xie

unread,
Jul 11, 2022, 10:15:42 AM7/11/22
to discuss...@googlegroups.com
That all depends on the network where the webrtc client locates. If the network blocks UDP, and Asterisk does not listen on TCP, then you still need a TURN server.

/Kaiduan

On Mon, Jul 11, 2022 at 10:00 AM Wadii ELMAJDI <wa...@evenmedia.fr> wrote:
Thank you
In other words if my Asterisk is on public IP , i dont need to use any Stun/Turn servers on my webRTC clients ? is it safe to disable it ?
Reply all
Reply to author
Forward
Message has been deleted
0 new messages