]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
send 503 instead of 480
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 7 Apr 2008 17:06:44 +0000 (17:06 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 7 Apr 2008 17:06:44 +0000 (17:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8047 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 92b84a07ef22102998590f189bc3e315e097e0ff..0a8d3f812dc3ad1e136f2c40f9cf35e6f1c59f46 100644 (file)
@@ -2509,7 +2509,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
        
 
        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 @@ 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))) {
-               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 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
        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,