Fixed external media address for webrtc clients
we have asterisk server behind NAT using PJSIP. Some clients are connected with transport protocol wss (webrtc) and some are on UDP. Yesterday all webrtc clients stop working, without any software upgrade/change. The problem was that asterisk starts to send SDP without external address and webrtc clients were not able to connect. UDP clients work OK, because they are using external_media_address, local_net…
1.) It looks like that wss protocol is not using transport options local_net, external_media_address? Is it possible to used fixed external media address also when wss protocol is used?
2.) The problem in the first place was because stun.l.google.com:19302 (configured in rtp.conf) stop working, it hasn’t return any external address? But when I change to stun1.l.google.com:19302 all starts to work. I found that (protocols - Why a STUN Server Needs Two Different Public IP addresses - Stack Overflow) on rare cases one stun server is not enough. So, is it possible (if there is no way to set fixed address) to configure two stun servers in rtp.conf. I tried this in rtp.conf:
but only the first stun server is used.