Commit f9f3c3e6 authored by Simon Désaulniers's avatar Simon Désaulniers Committed by gerrit2

presencemanager: include buddy uri in subscription

Change-Id: I894dafe7f91f6232e2123a372feef614049b5e59
parent 50fa02c0
......@@ -41,6 +41,7 @@ namespace DRing {
using ring::SIPAccount;
constexpr static const char* BUDDY_KEY = "Buddy";
constexpr static const char* STATUS_KEY = "Status";
constexpr static const char* LINESTATUS_KEY = "LineStatus";
constexpr static const char* ONLINE_KEY = "Online";
......@@ -132,9 +133,10 @@ getSubscriptions(const std::string& accountID)
if (auto pres = sipaccount->getPresence()) {
for (const auto& s : pres->getClientSubscriptions()) {
ret.push_back({
{STATUS_KEY, s->isPresent() ? ONLINE_KEY : OFFLINE_KEY},
{LINESTATUS_KEY, s->getLineStatus()}
});
{BUDDY_KEY, s->getURI()},
{STATUS_KEY, s->isPresent() ? ONLINE_KEY : OFFLINE_KEY},
{LINESTATUS_KEY, s->getLineStatus()}
});
}
} else
RING_ERR("Presence not initialized");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment