[ekiga] Opal: Maintain tuple id accross ekiga restarts.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Opal: Maintain tuple id accross ekiga restarts.
- Date: Mon, 16 Nov 2015 18:51:42 +0000 (UTC)
commit 94783545016e4ca28ebace8fb906661688c6541f
Author: Damien Sandras <dsandras seconix com>
Date: Mon Nov 16 19:50:59 2015 +0100
Opal: Maintain tuple id accross ekiga restarts.
lib/engine/components/opal/opal-account.cpp | 5 +++++
lib/engine/components/opal/opal-account.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index f823e2e..d0ca532 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -268,6 +268,9 @@ Opal::Account::Account (Opal::Bank & _bank,
bank.disable_action ("add-account-ekiga");
}
+
+ if (sip_endpoint)
+ instance_id = sip_endpoint->GetInstanceID ().AsString ();
}
@@ -965,6 +968,8 @@ Opal::Account::publish (const Ekiga::PersonalDetails& details)
OpalPresenceInfo opi = OpalPresenceInfo (OpalPresenceInfo::Available);
opi.m_activities = PString (details.get_presence ());
opi.m_note = details.get_status ();
+ opi.m_service = instance_id;
+
opal_presentity->SetLocalPresence (opi);
PTRACE (4, "Ekiga\tSent its own presence (publish) for " << get_aor() << ": " << details.get_presence ()
<< ", note " << details.get_status ());
}
diff --git a/lib/engine/components/opal/opal-account.h b/lib/engine/components/opal/opal-account.h
index ea11717..3917468 100644
--- a/lib/engine/components/opal/opal-account.h
+++ b/lib/engine/components/opal/opal-account.h
@@ -284,6 +284,7 @@ private:
EndPoint& endpoint;
H323::EndPoint* h323_endpoint;
Sip::EndPoint* sip_endpoint;
+ PString instance_id;
};
typedef boost::shared_ptr<Account> AccountPtr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]