From 5103ce7979f9aed0a95491395365c08acec194c0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 3 Apr 2009 14:47:52 +0000 Subject: [PATCH] MODENDP-209 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12902 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 52108aa8ed..b3e6618bde 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -539,7 +539,8 @@ void sofia_event_callback(nua_event_t event, break; } - if ((sofia_private && sofia_private == &mod_sofia_globals.destroy_private) || (status >= 300 && status != 401 && status != 407 && status != 603)) { + if ((sofia_private && sofia_private == &mod_sofia_globals.destroy_private) || + (!session && (status >= 300 && status != 401 && status != 407))) { nua_handle_bind(nh, NULL); nua_handle_destroy(nh); nh = NULL;