aws-samples / amazon-kinesis-video-streams-webrtc-sdk-c-for-freertos

Apache License 2.0
37 stars 26 forks source link

TURN allocations always fail #39

Open vikramdattu opened 3 months ago

vikramdattu commented 3 months ago

Hello team,

When I chose TURN only from the WebPage, the stream never happens with Unauthorised messages pouring in.

Unauthorized
stun error packet type:0x113
Unauthorized
stun error packet type:0x113
Unauthorized
operation returned status code: 0x19300009 from turn_connection_fsm_step(1527)
TurnConnection state changed from TURN_STATE_ALLOCATION to TURN_STATE_FAILED
TurnConnection in TURN_STATE_FAILED due to 0x19300009. Aborting TurnConnection
TurnConnection state changed from TURN_STATE_FAILED to TURN_STATE_CLEAN_UP
stun error packet type:0x113
Unauthorized
TurnConnection state changed from TURN_STATE_CLEAN_UP to TURN_STATE_FAILED
TurnConnection in TURN_STATE_FAILED due to 0x19300009. Aborting TurnConnection

The STUN only always works. It's only the TURN allocation never succeed. Are there any known fixes for the same? At first it seems to be something which can be fixed with Channel configuration, but the channel configuration itself does not have any specific options for this.

Any help/pointers are appreciated.