From 33aa0f12762ef389aba4bfdd3710c5829a4deb14 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 11 Jan 2018 11:35:06 +0100 Subject: [PATCH] Fix STUN authentication requested callback. --- src/nat/ice-agent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nat/ice-agent.cpp b/src/nat/ice-agent.cpp index 9aef0281f..ef81819a9 100644 --- a/src/nat/ice-agent.cpp +++ b/src/nat/ice-agent.cpp @@ -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";