diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c
index adb3231b3b..94dd8622e5 100644
--- a/src/mod/endpoints/mod_sofia/sofia_presence.c
+++ b/src/mod/endpoints/mod_sofia/sofia_presence.c
@@ -2270,7 +2270,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
} else if (!strcasecmp(proto, "queue")) {
stream.write_function(&stream, "\nsip:queue@%s;fifo=%s\n",
host, !zstr(clean_to_user) ? clean_to_user : "unknown");
- stream.write_function(&stream, "\n", host);
+ stream.write_function(&stream, "\n", host, !zstr(clean_to_user) ? clean_to_user : "unknown");
stream.write_function(&stream, "\n\n\n");
stream.write_function(&stream, "\nsip:%s\n", uuid);
if (skip_proto) {
@@ -2283,7 +2283,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
} else if (!strcasecmp(proto, "park")) {
stream.write_function(&stream, "\nsip:park@%s;slot=%s\n",
host, !zstr(clean_to_user) ? clean_to_user : "unknown");
- stream.write_function(&stream, "\n", host);
+ stream.write_function(&stream, "\n", host, !zstr(clean_to_user) ? clean_to_user : "unknown");
stream.write_function(&stream, "\n\n\n");
stream.write_function(&stream, "\nsip:%s\n", uuid);
if (skip_proto) {
@@ -2295,7 +2295,8 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
} else if (!strcasecmp(proto, "conf")) {
stream.write_function(&stream, "\nsip:conference@%s;conference=%s\n",
host, !zstr(clean_to_user) ? clean_to_user : "unknown");
- stream.write_function(&stream, "\n", host);
+ stream.write_function(&stream, "\n",
+ host, !zstr(clean_to_user) ? clean_to_user : "unknown");
stream.write_function(&stream, "\n\n\n");
stream.write_function(&stream, "\nsip:%s@%s\n", uuid, host);
if (skip_proto) {