]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
dont destroy handle when subs are inside a call's dialog
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 7 Mar 2013 00:01:21 +0000 (18:01 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 7 Mar 2013 00:02:01 +0000 (18:02 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 3547130446eaa923b059269a1d5a687b94ee55d1..f49b138566d1bc997eda61dc4f7069120e87015d 100644 (file)
@@ -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);
+       }
        
 }