From f9cbabd48aae072f519f5f43fd12f98713c2efd2 Mon Sep 17 00:00:00 2001 From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> Date: Tue, 4 Aug 2015 17:14:14 -0400 Subject: [PATCH] ringaccount: display as dgb ICE incoming data from dht Issue: #78582 Change-Id: I67a11ca2aec47669c23183fdbc97bf26ad00a7ee --- src/ringdht/ringaccount.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ringdht/ringaccount.cpp b/src/ringdht/ringaccount.cpp index da69624402..42d7c342fe 100644 --- a/src/ringdht/ringaccount.cpp +++ b/src/ringdht/ringaccount.cpp @@ -211,7 +211,8 @@ RingAccount::newOutgoingCall(const std::string& toUrl) [=] (dht::IceCandidates&& msg) { if (msg.id != replyvid) return true; - RING_WARN("ICE request replied from DHT peer %s", toH.toString().c_str()); + RING_WARN("ICE request replied from DHT peer %s\n%s", toH.toString().c_str(), + std::string(msg.ice_data.cbegin(), msg.ice_data.cend()).c_str()); if (auto call = weak_call.lock()) call->setState(Call::ConnectionState::PROGRESSING); ice->start(msg.ice_data); @@ -837,7 +838,8 @@ void RingAccount::incomingCall(dht::IceCandidates&& msg) { auto from = msg.from.toString(); auto reply_vid = msg.id+1; - RING_WARN("Received incoming DHT call request from %s", from.c_str()); + RING_WARN("ICE incoming from DHT peer %s\n%s", from.c_str(), + std::string(msg.ice_data.cbegin(), msg.ice_data.cend()).c_str()); auto call = Manager::instance().callFactory.newCall<SIPCall, RingAccount>(*this, Manager::instance().getNewCallID(), Call::CallType::INCOMING); auto ice = Manager::instance().getIceTransportFactory().createTransport( ("sip:"+call->getCallId()).c_str(), ICE_COMPONENTS, false, getIceOptions()); -- GitLab