if ((flags & SMF_ECHO_ALEG)) {
if ((flags & SMF_EXEC_INLINE)) {
- nomedia = 0;
switch_core_session_execute_application(session, app, path);
} else {
if (switch_event_create(&event, SWITCH_EVENT_COMMAND) == SWITCH_STATUS_SUCCESS) {
inner_bridge = switch_channel_test_flag(chan_a, CF_INNER_BRIDGE);
if (!switch_channel_test_flag(chan_a, CF_ANSWERED) && (bridge_answer_timeout = switch_channel_get_variable(chan_a, "bridge_answer_timeout"))) {
- if ((answer_timeout = atoi(bridge_answer_timeout)) < 0) {
- answer_timeout = 0;
- } else {
+ if ((answer_timeout = atoi(bridge_answer_timeout)) >= 0) {
answer_limit = switch_epoch_time_now(NULL) + answer_timeout;
}
}