diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index e1973efabe..211e9bb7cd 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -3017,11 +3017,11 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * !zstr(clean_to_user) ? clean_to_user : "unknown", host); stream.write_function(&stream, "\n", !zstr(clean_to_user) ? clean_to_user : "unknown", host); stream.write_function(&stream, "\n\n\n"); - stream.write_function(&stream, "\nsip:%s\n", uuid); + stream.write_function(&stream, "\nsip:%s@%s\n", uuid, host); if (skip_proto) { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } else { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } stream.write_function(&stream, "\n"); @@ -3032,9 +3032,9 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * stream.write_function(&stream, "\n\n\n"); stream.write_function(&stream, "\nsip:%s\n", uuid); if (skip_proto) { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } else { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } stream.write_function(&stream, "\n"); } else if (!strcasecmp(proto, "pickup")) { @@ -3042,11 +3042,11 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * !zstr(clean_to_user) ? clean_to_user : "unknown", host); stream.write_function(&stream, "\n", !zstr(clean_to_user) ? clean_to_user : "unknown", host); stream.write_function(&stream, "\n\n\n"); - stream.write_function(&stream, "\nsip:%s\n", uuid); + stream.write_function(&stream, "\nsip:%s@%s\n", uuid, host); if (skip_proto) { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } else { - stream.write_function(&stream, "\n", uuid); + stream.write_function(&stream, "\n", uuid, host); } stream.write_function(&stream, "\n"); } else if (!strcasecmp(proto, "conf")) {