From b98bd24e1df6d7f2577481974235a3e789d850fd Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 18 Aug 2010 11:24:38 +0200 Subject: [PATCH] fix illegal characters in presence xml --- coreapi/sal_eXosip2_presence.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coreapi/sal_eXosip2_presence.c b/coreapi/sal_eXosip2_presence.c index 9be8a698..a38fdf91 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 -- 2.39.2