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
This commit is contained in:
Michael Jerris 2007-10-15 18:31:10 +00:00
parent 9b7928ee85
commit 3c10d5af76
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
} }