This commit is contained in:
Anthony Minessale
2012-08-22 17:05:25 -05:00
parent 2a8841ab66
commit b3140af073
2 changed files with 3 additions and 8 deletions
+2 -2
View File
@@ -1744,12 +1744,12 @@ void sofia_event_callback(nua_event_t event,
}
if (switch_core_session_thread_launch(session) != SWITCH_STATUS_SUCCESS) {
if (!switch_core_session_running(session)) {
if (!switch_core_session_running(session) && !switch_core_session_started(session)) {
nua_handle_bind(nh, NULL);
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());
}
}
goto end;
}