revert part of 390e6713cc
This commit is contained in:
parent
bc70900335
commit
087b2e4f30
|
@ -660,10 +660,7 @@ static handle_rfc2833_result_t handle_rfc2833(switch_rtp_t *rtp_session, switch_
|
||||||
rtp_session->dtmf_data.in_digit_ts = 0;
|
rtp_session->dtmf_data.in_digit_ts = 0;
|
||||||
rtp_session->dtmf_data.in_digit_sanity = 0;
|
rtp_session->dtmf_data.in_digit_sanity = 0;
|
||||||
rtp_session->dtmf_data.in_digit_queued = 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 {
|
} else {
|
||||||
if (!switch_rtp_ready(rtp_session)) {
|
if (!switch_rtp_ready(rtp_session)) {
|
||||||
return RESULT_GOTO_END;
|
return RESULT_GOTO_END;
|
||||||
|
@ -708,9 +705,7 @@ static handle_rfc2833_result_t handle_rfc2833(switch_rtp_t *rtp_session, switch_
|
||||||
return RESULT_GOTO_RECVFROM;
|
return RESULT_GOTO_RECVFROM;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER)) {
|
*do_cng = 1;
|
||||||
*do_cng = 1;
|
|
||||||
}
|
|
||||||
return RESULT_GOTO_TIMERCHECK;
|
return RESULT_GOTO_TIMERCHECK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue