Skip to content
Snippets Groups Projects
Commit f9cbabd4 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

ringaccount: display as dgb ICE incoming data from dht

Issue: #78582
Change-Id: I67a11ca2aec47669c23183fdbc97bf26ad00a7ee
parent fce9cd0d
No related branches found
No related tags found
No related merge requests found
...@@ -211,7 +211,8 @@ RingAccount::newOutgoingCall(const std::string& toUrl) ...@@ -211,7 +211,8 @@ RingAccount::newOutgoingCall(const std::string& toUrl)
[=] (dht::IceCandidates&& msg) { [=] (dht::IceCandidates&& msg) {
if (msg.id != replyvid) if (msg.id != replyvid)
return true; 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()) if (auto call = weak_call.lock())
call->setState(Call::ConnectionState::PROGRESSING); call->setState(Call::ConnectionState::PROGRESSING);
ice->start(msg.ice_data); ice->start(msg.ice_data);
...@@ -837,7 +838,8 @@ void RingAccount::incomingCall(dht::IceCandidates&& msg) ...@@ -837,7 +838,8 @@ void RingAccount::incomingCall(dht::IceCandidates&& msg)
{ {
auto from = msg.from.toString(); auto from = msg.from.toString();
auto reply_vid = msg.id+1; 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 call = Manager::instance().callFactory.newCall<SIPCall, RingAccount>(*this, Manager::instance().getNewCallID(), Call::CallType::INCOMING);
auto ice = Manager::instance().getIceTransportFactory().createTransport( auto ice = Manager::instance().getIceTransportFactory().createTransport(
("sip:"+call->getCallId()).c_str(), ICE_COMPONENTS, false, getIceOptions()); ("sip:"+call->getCallId()).c_str(), ICE_COMPONENTS, false, getIceOptions());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment