From: Michael Jerris Date: Wed, 9 May 2007 14:43:35 +0000 (+0000) Subject: get event callbacks after you shutdown a ua so that we can handle call cleanup. ... X-Git-Tag: v1.0-beta1~366 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4e031c021a236efcf09adadf4005c8ffcb1094b;p=thirdparty%2Ffreeswitch.git get event callbacks after you shutdown a ua so that we can handle call cleanup. Still to come on this is a tag to properly set this behavior. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5111 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c b/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c index 9f10212981..95acc205e9 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c @@ -271,7 +271,9 @@ int nua_stack_event(nua_t *nua, nua_handle_t *nh, msg_t *msg, if ((event > nua_r_authenticate && event <= nua_r_ack) || event < nua_i_error || (nh && !nh->nh_valid) - || (nua->nua_shutdown && event != nua_r_shutdown)) { + /* disable hiding all events after shutdown so that we can get state callbacks to properly tear down our calls */ + /* || (nua->nua_shutdown && event != nua_r_shutdown) */ + ) { if (msg) msg_destroy(msg); return event;