mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
add outbound_redirect_fatal
This commit is contained in:
parent
aa4816659c
commit
76776ff217
@ -3752,6 +3752,12 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
|
||||
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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user