-
-
Notifications
You must be signed in to change notification settings - Fork 236
Description
I am using libpeer for ARM board. I am able to do audio communication between our custom board and server using local network(i.e. using STUN only). Now, when I am using TURN + STUN in board then I am not able to do audio communication. For TURN, I am using coturn as well as xirsys.
Facing below errors:
ERROR /usr/src/debug/libpeer/1.0/src/stun.c 220 Unknown Attribute Type: 0x0009
STUN Error: 401 - Unauthorized
DEBUG /usr/src/debug/libpeer/1.0/src/stun.c 191 Nonce 482e24241686b047
DEBUG /usr/src/debug/libpeer/1.0/src/stun.c 185 Realm xirsys.com
ERROR /usr/src/debug/libpeer/1.0/src/stun.c 220 Unknown Attribute Type: 0x8022
STUN Error: 517 - rn-4.6.2 'Gorst'€(
After more debugging, I found that SDP is exchanging between both devices but ICE state is getting failed and hence audio communication is not happening. Below candidates are getting generated in SDP:
a=candidate:0 1 UDP 2122360575 xxxx.xxxx.xxxx 32934 typ host
a=candidate:2 1 UDP 1688216319 xxxx.xxxx.xxxx 40994 typ srflx raddr 0.0.0.0 rport 0
a=candidate:3 1 UDP 14359295 xxxx.xxxx.xxxx typ relay raddr 0.0.0.0 rport 0
Also, I am declaring TURN and STUN in my application as below:
PeerConfiguration config =
{
.ice_servers = {
{
.urls = "stun:stun1.l.google.com:19302"
},
{
.urls = "",
.username = "xxxx"
.credential = "xxxx"
}
},
};
I have also referred #245 as well.
Please help me in figuring out the issue.