diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 1dfa7188cd..6e1d895074 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -2499,7 +2499,9 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * } - if (!zstr(uuid)) { + if (zstr(uuid)) { + stream.write_function(&stream, "terminated\n"); + } else { if (!zstr(answer_state)) { astate = answer_state; }