提交 c4a5042c authored 作者: Anthony Minessale's avatar Anthony Minessale

don't refuse invites on established sessions due to session limits

Conflicts:
	src/mod/endpoints/mod_sofia/sofia.c
上级 1aa0ec5f
...@@ -1819,6 +1819,8 @@ void sofia_event_callback(nua_event_t event, ...@@ -1819,6 +1819,8 @@ void sofia_event_callback(nua_event_t event,
case nua_i_notify: case nua_i_notify:
case nua_i_info: case nua_i_info:
if (!sofia_private) {
if (sess_count >= sess_max || !sofia_test_pflag(profile, PFLAG_RUNNING) || !switch_core_ready_inbound()) { if (sess_count >= sess_max || !sofia_test_pflag(profile, PFLAG_RUNNING) || !switch_core_ready_inbound()) {
nua_respond(nh, 503, "Maximum Calls In Progress", SIPTAG_RETRY_AFTER_STR("300"), NUTAG_WITH_THIS(nua), TAG_END()); nua_respond(nh, 503, "Maximum Calls In Progress", SIPTAG_RETRY_AFTER_STR("300"), NUTAG_WITH_THIS(nua), TAG_END());
goto end; goto end;
...@@ -1834,6 +1836,8 @@ void sofia_event_callback(nua_event_t event, ...@@ -1834,6 +1836,8 @@ void sofia_event_callback(nua_event_t event,
nua_respond(nh, 503, "System Paused", NUTAG_WITH_THIS(nua), TAG_END()); nua_respond(nh, 503, "System Paused", NUTAG_WITH_THIS(nua), TAG_END());
goto end; goto end;
} }
}
break; break;
default: default:
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论