From 36fd57c45b9b6ebbafbe57e5be4c5e2120a281cf Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 18 May 2016 13:22:41 +0200 Subject: [PATCH] friend.c: linphone_friend_get_addresses must return at least URI if we are not using vcard --- coreapi/friend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/friend.c b/coreapi/friend.c index 8ba8cc56f..a29a608d1 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -246,7 +246,7 @@ MSList* linphone_friend_get_addresses(LinphoneFriend *lf) { vcard = linphone_friend_get_vcard(lf); if (!vcard) { - return NULL; + return lf->uri ? ms_list_append(addresses, lf->uri) : NULL; } sipAddresses = linphone_vcard_get_sip_addresses(vcard); @@ -615,7 +615,7 @@ void linphone_friend_save(LinphoneFriend *fr, LinphoneCore *lc) { void linphone_friend_apply(LinphoneFriend *fr, LinphoneCore *lc) { LinphonePresenceModel *model; - + if (!fr->uri) { ms_warning("No sip url defined."); return;