From 82dbf27b814fb9d1825c452be53ee1220f85e8c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Tue, 16 Dec 2014 16:57:05 -0500
Subject: [PATCH] add an ICE annoucement DHT value type

Refs #61425

Change-Id: I1f33ee0ad801c77827de4916a2d97aa7b306c2ae
---
 daemon/src/ringdht/ringaccount.cpp | 2 ++
 daemon/src/ringdht/ringaccount.h   | 1 +
 2 files changed, 3 insertions(+)

diff --git a/daemon/src/ringdht/ringaccount.cpp b/daemon/src/ringdht/ringaccount.cpp
index 940219afbf..ad06cfe858 100644
--- a/daemon/src/ringdht/ringaccount.cpp
+++ b/daemon/src/ringdht/ringaccount.cpp
@@ -503,6 +503,8 @@ void RingAccount::doRegister()
         );
 
         dht_.registerType(USER_PROFILE_TYPE);
+        dht_.registerType(ICE_ANNOUCEMENT_TYPE);
+
         dht_.importValues(loadValues());
 
         // Publish our own CA
diff --git a/daemon/src/ringdht/ringaccount.h b/daemon/src/ringdht/ringaccount.h
index 4c806ce93c..6eb77fcc2d 100644
--- a/daemon/src/ringdht/ringaccount.h
+++ b/daemon/src/ringdht/ringaccount.h
@@ -255,6 +255,7 @@ class RingAccount : public SIPAccountBase {
     private:
 
         const dht::ValueType USER_PROFILE_TYPE = {9, "User profile", 60 * 60 * 24 * 7};
+        const dht::ValueType ICE_ANNOUCEMENT_TYPE = {10, "ICE descriptors", 15 * 60};
 
         void createOutgoingCall(const std::shared_ptr<SIPCall>& call, const std::string& to, const std::string& toUrl, const IpAddr& peer);
 
-- 
GitLab