MODENDP-209

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12902 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-04-03 14:47:52 +00:00
parent d2df557566
commit 5103ce7979
1 changed files with 2 additions and 1 deletions

View File

@ -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;