diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 8d8769a21a..779719331a 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -532,8 +532,6 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * } to = switch_mprintf("sip:%s@%s", user, host); - tmp = contact; - contact = sofia_glue_get_url_from_contact(tmp, 0); pl = switch_mprintf("\r\n" "\r\n" "\r\n" "
\r\n" - "\r\n" + "\r\n" + "%s\r\n" + "\r\n" "\r\n" "
\r\n" "
\r\n" @@ -554,10 +554,12 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * "\r\n" "\r\n" "\r\n" "\r\n" "%s\r\n" "
", id, - id, contact, rpid, + id, profile->url, note, rpid, open, rpid, note); + tmp = contact; + contact = sofia_glue_get_url_from_contact(tmp, 0); nh = nua_handle(profile->nua, NULL, TAG_END());