Skip to content
Snippets Groups Projects
Commit 935b7609 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

turn: do not add ipv4 turn twice

Change-Id: I5d6f9d8fe3b44a5bbe2045cc3d48f11a81a2512c
parent 9ff3838d
No related merge requests found
......@@ -479,13 +479,15 @@ SIPAccountBase::getIceOptions() const noexcept
.setPassword(turnServerPwd_)
.setRealm(turnServerRealm_));
}
if (cacheTurnV6_ && *cacheTurnV6_) {
opts.turnServers.emplace_back(TurnServerInfo()
.setUri(cacheTurnV4_->toString(true))
.setUsername(turnServerUserName_)
.setPassword(turnServerPwd_)
.setRealm(turnServerRealm_));
}
// NOTE: first test with ipv6 turn was not concluant and resulted in multiple
// co issues. So this needs some debug. for now just disable
// if (cacheTurnV6_ && *cacheTurnV6_) {
// opts.turnServers.emplace_back(TurnServerInfo()
// .setUri(cacheTurnV6_->toString(true))
// .setUsername(turnServerUserName_)
// .setPassword(turnServerPwd_)
// .setRealm(turnServerRealm_));
//}
// Nothing cached, so do the resolution
if (!cached) {
opts.turnServers.emplace_back(TurnServerInfo()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment