From 96d95d528125fea36cc89ec988fd971e86c3450a Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Wed, 4 Dec 2013 16:04:46 +0200 Subject: [PATCH] ucs: accept sip: prefix in ImAdress node It seems that on some installations ImAddress node can contain URIs with sip: prefix. Switch from sip_uri_from_name() to sip_uri() to make sure that we always retrieve a correct SIP URI. (cherry picked from commit c095335dbd9c4b85d5d8a9b08cc6fac04e9c7586) --- src/core/sipe-ucs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/sipe-ucs.c b/src/core/sipe-ucs.c index faacd729..7ed233e9 100644 --- a/src/core/sipe-ucs.c +++ b/src/core/sipe-ucs.c @@ -591,7 +591,11 @@ static void sipe_ucs_get_im_item_list_response(struct sipe_core_private *sipe_pr if (!(is_empty(address) || is_empty(key) || is_empty(change))) { gchar *alias = sipe_xml_data(sipe_xml_child(persona_node, "DisplayName")); - gchar *uri = sip_uri_from_name(address); + /* + * it seems to be undefined if ImAddress node + * contains "sip:" prefix or not... + */ + gchar *uri = sip_uri(address); struct sipe_buddy *buddy = sipe_buddy_add(sipe_private, uri, key, -- 2.11.4.GIT