config turn-server with ALTERNATE-SERVER Mechanism failed with coturn
When i use libnice to construct a video conference project, I get a problem about TURNSERVER. details as following:
- when config one turnserver, can generate the correct SDP info with relay address(turnserver ip and port), print following info:
STUN demux: OK!
STUN unknown: 0 mandatory attribute(s)!
STUN error message received (code: 401)
Message HMAC-SHA1 message integrity:
key : 0x313233343536
sent : 0x6f3b61004c23f4ab2f1c75fbd730f685072e0363
STUN demux: OK!
Message HMAC-SHA1 fingerprint:
key : 0x313233343536
expected: 0xfe1f61c3d9c39f6a0abaf53c242a4070879bcd8c
received: 0xfe1f61c3d9c39f6a0abaf53c242a4070879bcd8c
STUN auth: OK!
STUN unknown: 0 mandatory attribute(s)!
Received 92-bytes STUN message
Mapped address found!
STUN demux error: no cookie!
STUN unknown: 0 mandatory attribute(s)!
Received 92-bytes STUN message
No XOR-MAPPED-ADDRESS: 1
Mapped address found!
- when use ALTERNATE-SERVER Mechanism in turnserver with two turnserver, print these log:
STUN demux: OK!
STUN auth error: No message integrity attribute!
STUN transaction retransmitted (timeout 399ms).
STUN transaction retransmitted (timeout 399ms).
STUN demux: OK!
STUN auth error: No message integrity attribute!
STUN demux error: no cookie!
STUN unknown: 0 mandatory attribute(s)!
Received 92-bytes STUN message
No XOR-MAPPED-ADDRESS: 1
Mapped address found!
STUN demux error: no cookie!
STUN demux error: no cookie!
STUN transaction retransmitted (timeout 796ms).
STUN demux: OK!
STUN auth error: No message integrity attribute!
STUN transaction retransmitted (timeout 1592ms).
STUN demux: OK!
STUN auth error: No message integrity attribute!
No generate correct SDP info, no relay address info. Sorry, my English is not very good.