clean up dialog stuff on presence for sla and other stuff

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12708 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-03-22 05:15:17 +00:00
parent 2db2a8b248
commit 41944b7e6f
7 changed files with 287 additions and 102 deletions
+3 -3
View File
@@ -111,6 +111,7 @@ void sofia_handle_sip_i_notify(switch_core_session_t *session, int status,
sofia_sla_handle_sip_i_notify(nua, profile, nh, sip, tags);
if (sub_state == nua_substate_terminated) {
sofia_private_free(sofia_private);
nua_handle_bind(nh, NULL);
nua_handle_destroy(nh);
}
@@ -544,8 +545,7 @@ void sofia_event_callback(nua_event_t event,
nua_handle_bind(nh, NULL);
}
sofia_private->destroy_me = 12;
free(sofia_private);
sofia_private = NULL;
sofia_private_free(sofia_private);
}
if (gateway) {
@@ -4721,7 +4721,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
}
nua_handle_bind(nh, NULL);
free(sofia_private);
sofia_private_free(sofia_private);
switch_core_session_destroy(&session);
nua_respond(nh, 503, "Maximum Calls In Progress", SIPTAG_RETRY_AFTER_STR("300"), TAG_END());
}