Time out when negotiating connection #1256
-
Hi,
The times where it work I get the exact same, but then it will continue with this:
We have another web based client towards the same servers and do not see the same issue there. Does anyone have an idea what could be the reason why "ICE RTP channel sending connectivity check for" often times out? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 20 replies
-
I can replicate the same behaviour and log messages if I re-use an RTCPeerConnection instance. Each instance is only intended to be used once. For each new WebRTC peer connection you should be creating a brand new instance. If it helps I use the webrtccmdline tool to test scenarios like this. Signalling server peer:
Signalling client peer:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the additional logs. The key difference between the success and failure cases is this log message:
In the success case that STUN response is received AFTER the ICE candidate is nominated, which is indicated in the log message below with the
The question is now why isn't the STUN binding success response received from the TURN server in some cases. If you're able to use WireShark it would be very helpful to get a packet capture of the STUN messages to/from the TURN server during the success and failure cases. That should fairly definitively point to the sipsorcery library being the culprit or not. If you do capture a WireShark trace you can send it directly to me at aaron@sipsorcery.com to avoid publishing you IP addresses. |
Beta Was this translation helpful? Give feedback.
The server-side provider did some changes a week or two ago, which was not supposed to have any affect on this, but nevertheless I am no longer able to reproduce the issue (no changes in neither my code nor the SIP Sorcery), so my best guess is that this was related to the server side after all.
I apologize for having involved you in this, but want to provide my sincere gratitude for your support on this matter. My team and I will do our best to provide improvements to the library to pay a little bit back to the community.