Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (14952 => 14953)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-09-23 09:58:42 UTC (rev 14952)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-09-23 13:17:36 UTC (rev 14953)
@@ -2987,6 +2987,11 @@
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;