Dropping calls immediately
I'm using the latest stable JS from the website.
The issue occurs on certain public networks. In this case, the connection is going through the TURN server presumably (I'm 100% sure the TURN server is in use because I'm able to call w/ my Android smartphone which is on LTE), but the call is IMMEDIATELY disconnected. The stream is delivered and an answer is made on both ends, but the call drops almost instantly.

I'm behind a normal NAT and the peer is also behind normal NAT.
This issue occurs with that peer specifically with every other configuration, so I at first thought it was a wireless issue. However, it is able to communicate with other WebRTC solutions, even my raw/simple webrtc trial with a turn server. It's just when using PeerJS that the connection is immediately dropped.
I tried implementing the changes discussed in #347 regarding sdpMid but this made no improvement.
I'm a bit lost and there doesn't seem to be any other logs other than the ones pictured above, can someone point me in the right direction?
I'm now experiencing different behaviour. Now, the peers stay connected, and a MediaStream is delivered. However, the stream contains no real video or audio. It's just a black screen with no sound.
It works with nearly every other wireless network. Also, other WebRTC clients still work.
Could you post here whatever you find on chrome://webrtc-internals/ when that happens?
Yup, happened again today. The call is long so the dump will probably begin from when the connection was fine, near the end the peer switched wireless networks and refreshed and the call dropped immediately.
On some networks, if I wait ~ 10 seconds, the call closes, and if I try to remake the call to the same peer with the same stream, everything works perfectly but the old stream restarts itself (the stream that was being delivered by the closed call restarts with the new stream).
Here's another dump of the same thing, this time with some console errors as well:

Reds in WebRTC Internals:

Full dump attached
@pshah123 Could use please try a version from master branch?
Can you please release the latest version? @afrokick
We will be releasing it very soon, but we want to do things the right way. This will be a breaking release, so we need to go slowly and test everything.
Anyway, you can easily use github as a source with npm. You should target a commit to have stability, for example, to install using latest master branch:
npm install peers/peerjs#09d556f
Ya that's good to hear but so far I'm using your cdn version until that can I use your peer.min.js from your master branch? Whether it will work? @kidandcat
@RamyaAshika Yeap, you can use raw link https://raw.githubusercontent.com/peers/peerjs/master/dist/peerjs.min.js
But please, keep in mind, that it isn't a release version, so, it maybe unstable
Sure Thank you @afrokick
I'm having the same issue now when going through turn server.