From f2c5c92dfadff5d1b367ff524c94a3f5bc8a6966 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 8 Mar 2012 10:18:28 -0600 Subject: [PATCH] FS-3986 --resolve regression from 8f8af383654dcb3caf7cb483c073e63d8e2a3a7d --- src/mod/endpoints/mod_sofia/sofia_presence.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 6e1d895074..d6c06b6aaf 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -2500,7 +2500,9 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * } if (zstr(uuid)) { - stream.write_function(&stream, "terminated\n"); + if (stream.write_function) { + stream.write_function(&stream, "terminated\n"); + } } else { if (!zstr(answer_state)) { astate = answer_state; -- 2.47.3