[Freeswitch-svn] [commit] r8047 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Mon Apr 7 13:06:44 EDT 2008


Author: anthm
Date: Mon Apr  7 13:06:44 2008
New Revision: 8047

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Log:
send 503 instead of 480

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 Apr  7 13:06:44 2008
@@ -2509,7 +2509,7 @@
 	
 
 	if (sess_count >= sess_max || !(profile->pflags & PFLAG_RUNNING)) {
-		nua_respond(nh, 480, "Maximum Calls In Progress", SIPTAG_RETRY_AFTER_STR("300"), TAG_END());
+		nua_respond(nh, 503, "Maximum Calls In Progress", SIPTAG_RETRY_AFTER_STR("300"), TAG_END());
 		return;
 	}
 
@@ -2557,7 +2557,7 @@
 
 	
 	if (!sofia_endpoint_interface || !(session = switch_core_session_request(sofia_endpoint_interface, NULL))) {
-		nua_respond(nh, 480, "Maximum Calls In Progress", SIPTAG_RETRY_AFTER_STR("300"), TAG_END());
+		nua_respond(nh, 503, "Maximum Calls In Progress", SIPTAG_RETRY_AFTER_STR("300"), TAG_END());
 		return;
 	}
 
@@ -3005,7 +3005,7 @@
 	nua_handle_bind(nh, NULL);
 	free(tech_pvt->sofia_private);
 	switch_core_session_destroy(&session);
-	nua_respond(nh, 480, "Maximum Calls In Progress", SIPTAG_RETRY_AFTER_STR("300"), TAG_END());
+	nua_respond(nh, 503, "Maximum Calls In Progress", SIPTAG_RETRY_AFTER_STR("300"), TAG_END());
 }
 
 void sofia_handle_sip_i_options(int status,



More information about the Freeswitch-svn mailing list