diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp
index b23b39611e8724639da152d3b7762d48442cc299..536038b29a4b298b48cab4e2334c9be345993cbb 100644
--- a/src/jamidht/jamiaccount.cpp
+++ b/src/jamidht/jamiaccount.cpp
@@ -2059,7 +2059,7 @@ JamiAccount::trackPresence(const dht::InfoHash& h, BuddyInfo& buddy)
 }
 
 std::map<std::string, bool>
-JamiAccount::getTrackedBuddyPresence()
+JamiAccount::getTrackedBuddyPresence() const
 {
     std::lock_guard<std::mutex> lock(buddyInfoMtx);
     std::map<std::string, bool> presence_info;
diff --git a/src/jamidht/jamiaccount.h b/src/jamidht/jamiaccount.h
index 5d02f48c0b746a42aaca238474342875cf43deff..60715fb7d6fdfbbe9f0baa13692aef1226de92c4 100644
--- a/src/jamidht/jamiaccount.h
+++ b/src/jamidht/jamiaccount.h
@@ -161,7 +161,7 @@ class JamiAccount : public SIPAccountBase {
          *
          * @return map of buddy_uri to bool (online or not)
          */
-        std::map<std::string, bool> getTrackedBuddyPresence();
+        std::map<std::string, bool> getTrackedBuddyPresence() const;
 
         /**
          * Connect to the DHT.
diff --git a/src/sip/sippresence.h b/src/sip/sippresence.h
index 19f9ac23c85f2edebb94545aef5366c151192af7..11b618b96265fd595aac64befd082879a5332877 100644
--- a/src/sip/sippresence.h
+++ b/src/sip/sippresence.h
@@ -200,7 +200,7 @@ class SIPPresence {
 
         bool isSupported(int function);
 
-        std::list< PresSubClient *> getClientSubscriptions() {
+        const std::list< PresSubClient *>& getClientSubscriptions() const {
             return sub_client_list_;
         }