From: Anthony Minessale Date: Thu, 7 Mar 2013 00:01:21 +0000 (-0600) Subject: dont destroy handle when subs are inside a call's dialog X-Git-Tag: v1.3.16~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=228f9772d76fa6920e13c1de0ea4ca41befcb3c0;p=thirdparty%2Ffreeswitch.git dont destroy handle when subs are inside a call's dialog --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 3547130446..f49b138566 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -4072,7 +4072,9 @@ void sofia_presence_handle_sip_i_subscribe(int status, nua_respond(nh, 481, "INVALID SUBSCRIPTION", TAG_END()); } - nua_handle_destroy(nh); + if (!sofia_private || !sofia_private->is_call) { + nua_handle_destroy(nh); + } }