]> sjero.net Git - linphone/commitdiff
fix illegal characters in presence xml
authorSimon Morlat <simon.morlat@linphone.org>
Wed, 18 Aug 2010 09:24:38 +0000 (11:24 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Wed, 18 Aug 2010 09:25:23 +0000 (11:25 +0200)
coreapi/sal_eXosip2_presence.c

index 9be8a698f4422ae243d601803258b3f53c23df3f..a38fdf91b8b51f028ba4ec34e50336fbd6c58cb5 100644 (file)
@@ -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