good catch MODENDP-247

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14953 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-09-23 13:17:36 +00:00
parent e09573c149
commit 3b181f0ffb
1 changed files with 5 additions and 0 deletions

View File

@ -2987,6 +2987,11 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
char *invite_contact;
const char *br;
if (!p_contact) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Missing contact header in redirect request\n");
return;
}
if ((br = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE))) {
switch_xml_t root = NULL, domain = NULL;
switch_core_session_t *a_session;