[Freeswitch-svn] [commit] r12867 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN anthm at freeswitch.org
Wed Apr 1 09:53:04 PDT 2009


Author: anthm
Date: Wed Apr  1 11:53:04 2009
New Revision: 12867

Log:
add another destroy case for notify packets

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Wed Apr  1 11:53:04 2009
@@ -539,6 +539,11 @@
 		break;
 	}
 
+	if ((sofia_private && sofia_private == &mod_sofia_globals.destroy_private) || (status >= 300 && status != 401 && status != 407)) {
+		nua_handle_bind(nh, NULL);
+		nua_handle_destroy(nh);
+		nh = NULL;
+	}
 
 	if (check_destroy) {
 		if (nh && ((sofia_private && sofia_private->destroy_nh) || !nua_handle_magic(nh))) {



More information about the Freeswitch-svn mailing list