mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Fix STUN authentication requested callback.
This commit is contained in:
parent
6f73678078
commit
33aa0f1276
1 changed files with 1 additions and 1 deletions
|
|
@ -615,7 +615,7 @@ int IceAgent::gatherIceCandidates () {
|
|||
lInfo() << "ICE: gathering candidates from [" << server << "] using " << (linphone_nat_policy_turn_enabled(natPolicy) ? "TURN" : "STUN");
|
||||
// Gather local srflx candidates.
|
||||
ice_session_enable_turn(iceSession, linphone_nat_policy_turn_enabled(natPolicy));
|
||||
ice_session_set_stun_auth_requested_cb(iceSession, MediaSessionPrivate::stunAuthRequestedCb, &mediaSession);
|
||||
ice_session_set_stun_auth_requested_cb(iceSession, MediaSessionPrivate::stunAuthRequestedCb, mediaSession.getPrivate());
|
||||
return ice_session_gather_candidates(iceSession, ai->ai_addr, (socklen_t)ai->ai_addrlen) ? 1 : 0;
|
||||
} else {
|
||||
lInfo() << "ICE: bypass candidates gathering";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue