mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
cleanup
This commit is contained in:
committed by
Ken Rice
parent
f7b953e81d
commit
4d5ef2c210
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user