提交 3c10d5af authored 作者: Michael Jerris's avatar Michael Jerris

use 503 for server congestion, not 486, becuase that means user busy

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5880 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9b7928ee
...@@ -2398,7 +2398,7 @@ void agent_recv_request(nta_agent_t *agent, ...@@ -2398,7 +2398,7 @@ void agent_recv_request(nta_agent_t *agent,
else if (!agent->sa_is_stateless && (leg = agent->sa_default_leg)) { else if (!agent->sa_is_stateless && (leg = agent->sa_default_leg)) {
if (method == sip_method_invite && agent->sa_in.proceeding->q_length >= agent->sa_max_proceeding) { if (method == sip_method_invite && agent->sa_in.proceeding->q_length >= agent->sa_max_proceeding) {
SU_DEBUG_5(("nta: proceeding queue full for %s (%u)\n", method_name, cseq)); SU_DEBUG_5(("nta: proceeding queue full for %s (%u)\n", method_name, cseq));
nta_msg_treply(agent, msg, SIP_486_BUSY_HERE, nta_msg_treply(agent, msg, SIP_503_SERVICE_UNAVAILABLE,
NTATAG_TPORT(tport), NTATAG_TPORT(tport),
TAG_END()); TAG_END());
return; return;
......
...@@ -1885,7 +1885,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ ...@@ -1885,7 +1885,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
} }
if (!sofia_endpoint_interface || !(session = switch_core_session_request(sofia_endpoint_interface, NULL))) { if (!sofia_endpoint_interface || !(session = switch_core_session_request(sofia_endpoint_interface, NULL))) {
nua_respond(nh, SIP_486_BUSY_HERE, TAG_END()); nua_respond(nh, SIP_503_SERVICE_UNAVAILABLE, TAG_END());
return; return;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论