amazon-kinesis-video-streams-webrtc-sdk-c icon indicating copy to clipboard operation
amazon-kinesis-video-streams-webrtc-sdk-c copied to clipboard

[BUG] Error Code: 403 Forbidden IP error message from Turn Server, causing webrtc report 0x5a000027 error

Open zwei333 opened this issue 3 years ago • 0 comments

Sometimes, during TURN_STATE_CREATE_PERMISSION state of Turn Connection statemachine, the stun packet to turn server gets the following error response from the server: 2022-10-07 17:13:05 WARN turnConnectionHandleStunError(): Received STUN error response. Error type: 0x00, Error Code: 403. attribute len 16, Error detail: Forbidden IP. And then, webrtc would report this error 2022-10-07 17:13:05 ERROR turnConnectionSendData(): operation returned status code: 0x5a000027

Our local Ice candidates are: [2022-10-07 17:13:02.591590][19.26up][1820324944][info] KvsAPI.cpp:599:OnIceCandidateHandler() Add local Ice candidate {"candidate":"candidate:2 1 udp 16777215 54.90.206.252 64147 typ relay raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0} [2022-10-07 17:13:03.283135][19.96up][1820324944][info] KvsAPI.cpp:599:OnIceCandidateHandler() Add local Ice candidate {"candidate":"candidate:3 1 udp 16777215 54.90.206.252 60097 typ relay raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0} SDK version number 1.7.2

zwei333 avatar Oct 14 '22 23:10 zwei333