diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c
index 193226f..bdd9587 100644
--- a/obexd/plugins/phonebook-tracker.c
+++ b/obexd/plugins/phonebook-tracker.c
contact->company = g_strdup(reply[22]);
contact->department = g_strdup(reply[23]);
contact->title = g_strdup(reply[24]);
+ contact->uid = g_strdup(reply[CONTACTS_ID_COL]);
set_call_type(contact, reply[COL_DATE], reply[COL_SENT],
reply[COL_ANSWERED]);
diff --git a/obexd/plugins/vcard.c b/obexd/plugins/vcard.c
index 6d74e06..4a77eb3 100644
--- a/obexd/plugins/vcard.c
+++ b/obexd/plugins/vcard.c
vcard_printf_begin(vcards, format);
+ if (filter & FILTER_UID)
+ vcard_printf_tag(vcards, format, "UID", NULL, contact->uid);
+
if (filter & FILTER_N)
vcard_printf_name(vcards, contact);
g_slist_foreach(contact->addresses, address_free, NULL);
g_slist_free(contact->addresses);
+ g_free(contact->uid);
g_free(contact->fullname);
g_free(contact->given);
g_free(contact->family);
diff --git a/obexd/plugins/vcard.h b/obexd/plugins/vcard.h
index d012106..4d134c2 100644
--- a/obexd/plugins/vcard.h
+++ b/obexd/plugins/vcard.h
};
struct phonebook_contact {
+ char *uid;
char *fullname;
char *given;
char *family;