Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (17353 => 17354)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2010-04-20 21:15:53 UTC (rev 17353)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2010-04-20 21:50:40 UTC (rev 17354)
@@ -3752,6 +3752,12 @@
char *full_contact = NULL;
char *invite_contact;
const char *br;
+ const char *v;
+
+ if ((v = switch_channel_get_variable(channel, "outbound_redirect_fatal")) && switch_true(v)) {
+ switch_channel_hangup(channel, SWITCH_CAUSE_REQUESTED_CHAN_UNAVAIL);
+ goto end;
+ }
if (!p_contact) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Missing contact header in redirect request\n");