From 66b2dac75ecb6d55003397e560a3c926c83f56c9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 9 Mar 2007 17:38:58 +0000 Subject: [PATCH] send 503 reply on failed alloc git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4491 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index ceadb1ae4e..407f8b4eaf 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -4476,6 +4476,7 @@ static void sip_i_invite(nua_t *nua, if (!(tech_pvt = (private_object_t *) switch_core_session_alloc(session, sizeof(private_object_t)))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Hey where is my memory pool?\n"); + nua_respond(nh, SIP_503_SERVICE_UNAVAILABLE, TAG_END()); terminate_session(&session, SWITCH_CAUSE_SWITCH_CONGESTION, __LINE__); return; }