fix for MODENDP-19

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5567 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-08-03 21:41:18 +00:00
parent f1222ba2fd
commit 922bb27e5a
1 changed files with 1 additions and 1 deletions

View File

@ -1771,7 +1771,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
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;