From: Anthony Minessale Date: Thu, 8 Mar 2012 16:18:28 +0000 (-0600) Subject: FS-3986 --resolve regression from 8f8af383654dcb3caf7cb483c073e63d8e2a3a7d X-Git-Tag: v1.2-rc1~19^2^2~68^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2c5c92dfadff5d1b367ff524c94a3f5bc8a6966;p=thirdparty%2Ffreeswitch.git FS-3986 --resolve regression from 8f8af383654dcb3caf7cb483c073e63d8e2a3a7d --- 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;