diff --git a/coreapi/sal_eXosip2_presence.c b/coreapi/sal_eXosip2_presence.c
index 9be8a698f4422ae243d601803258b3f53c23df3f..a38fdf91b8b51f028ba4ec34e50336fbd6c58cb5 100644
--- a/coreapi/sal_eXosip2_presence.c
+++ b/coreapi/sal_eXosip2_presence.c
@@ -176,9 +176,9 @@ static void add_presence_body(osip_message_t *notify, SalPresenceStatus online_s
 #endif
 	char *contact_info;
 
-	osip_contact_t *ct=NULL;
-	osip_message_get_contact(notify,0,&ct);
-	osip_contact_to_str(ct,&contact_info);
+	osip_from_t *from=NULL;
+	from=osip_message_get_from(notify);
+	osip_uri_to_str(from->url,&contact_info);
 
 #ifdef SUPPORT_MSN