rtp_session->dtmf_data.in_digit_ts = 0;
rtp_session->dtmf_data.in_digit_sanity = 0;
rtp_session->dtmf_data.in_digit_queued = 0;
- *do_cng = 1;
+
+ if (!switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER)) {
+ *do_cng = 1;
+ }
} else {
if (!switch_rtp_ready(rtp_session)) {
return RESULT_GOTO_END;
return RESULT_GOTO_RECVFROM;
}
} else {
- *do_cng = 1;
+ if (switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER)) {
+ *do_cng = 1;
+ }
return RESULT_GOTO_TIMERCHECK;
}
}
if (status != SWITCH_STATUS_FALSE) {
read_pretriggered = 1;
+ break;
}
}