Skip to content
Snippets Groups Projects
Commit d589be69 authored by Sébastien Blin's avatar Sébastien Blin Committed by Andreas Traczyk
Browse files

sipcall: fix ICE SDP when answering ICE

In some cases, the local address was set as public address, causing
the SDP to not contains the public address for the medias.

GitLab: #823
Change-Id: Iad2673170c8f9ef46e8e30b15aa638a1a0dd6e6e
parent fe851b1c
Branches
Tags
No related merge requests found
...@@ -3427,7 +3427,7 @@ SIPCall::setupIceResponse(bool isReinvite) ...@@ -3427,7 +3427,7 @@ SIPCall::setupIceResponse(bool isReinvite)
// Try to use the discovered public address. If not available, // Try to use the discovered public address. If not available,
// fallback on local address. // fallback on local address.
opt.accountPublicAddr = account->getPublishedIpAddress(); opt.accountPublicAddr = account->getPublishedIpAddress();
if (opt.accountLocalAddr) { if (opt.accountPublicAddr) {
opt.accountLocalAddr = ip_utils::getInterfaceAddr(account->getLocalInterface(), opt.accountLocalAddr = ip_utils::getInterfaceAddr(account->getLocalInterface(),
opt.accountPublicAddr.getFamily()); opt.accountPublicAddr.getFamily());
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment