[Freeswitch-svn] [commit] r5880 - in freeswitch/trunk: libs/sofia-sip/libsofia-sip-ua/nta src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Mon Oct 15 14:31:10 EDT 2007


Author: mikej
Date: Mon Oct 15 14:31:10 2007
New Revision: 5880

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

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

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c	Mon Oct 15 14:31:10 2007
@@ -2398,7 +2398,7 @@
   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) {
 		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), 
 			   TAG_END());
 		return;

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Mon Oct 15 14:31:10 2007
@@ -1885,7 +1885,7 @@
 	}
 	
 	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;
 	}
 



More information about the Freeswitch-svn mailing list