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

Freeswitch SVN mikej at freeswitch.org
Fri Aug 3 17:41:18 EDT 2007


Author: mikej
Date: Fri Aug  3 17:41:18 2007
New Revision: 5567

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

Log:
fix for MODENDP-19

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	Fri Aug  3 17:41:18 2007
@@ -1771,7 +1771,7 @@
 		is_auth++;
 	}
 	
-	if (!(session = switch_core_session_request(sofia_endpoint_interface, NULL))) {
+	if (!sofia_endpoint_interface || !(session = switch_core_session_request(sofia_endpoint_interface, NULL))) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Session Alloc Failed!\n");
 		nua_respond(nh, SIP_503_SERVICE_UNAVAILABLE, TAG_END());
 		return;



More information about the Freeswitch-svn mailing list