FS-8175 #resolve [Add continue_on_answer_timeout variable to allow channel to proceed from a tripped answer timeout]

This commit is contained in:
Anthony Minessale 2015-09-16 18:07:44 -05:00
parent d57ab43f32
commit 8712f62ced
1 changed files with 6 additions and 1 deletions

View File

@ -599,7 +599,12 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
if (!switch_channel_test_flag(chan_a, CF_ANSWERED) && answer_limit && switch_epoch_time_now(NULL) > answer_limit) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session_a), SWITCH_LOG_DEBUG, "Answer timeout hit on %s.\n", switch_channel_get_name(chan_a));
switch_channel_hangup(chan_a, SWITCH_CAUSE_ALLOTTED_TIMEOUT);
if (switch_true(switch_channel_get_variable_dup(chan_a, "continue_on_answer_timeout", SWITCH_FALSE, -1))) {
data->clean_exit = 1;
goto end_of_bridge_loop;
} else {
switch_channel_hangup(chan_a, SWITCH_CAUSE_ALLOTTED_TIMEOUT);
}
}
if (!switch_channel_test_flag(chan_a, CF_ANSWERED)) {