Author: anthm Date: Tue Oct 23 21:27:58 2007 New Revision: 6043 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c Log: worth a shot Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c Tue Oct 23 21:27:58 2007 @@ -532,6 +532,8 @@ } to = switch_mprintf("sip:%s@%s", user, host); + tmp = contact; + contact = sofia_glue_get_url_from_contact(tmp, 0); pl = switch_mprintf("<?xml version='1.0' encoding='UTF-8'?>\r\n" "<presence xmlns='urn:ietf:params:xml:ns:pidf'\r\n" "xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'\r\n" @@ -558,8 +560,7 @@ nh = nua_handle(profile->nua, NULL, TAG_END()); - tmp = contact; - contact = sofia_glue_get_url_from_contact(tmp, 0); + nua_notify(nh, NUTAG_NEWSUB(1),