FSRTP-10
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16100 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5e1d6e6743
commit
49b8cfa16b
|
@ -1879,8 +1879,16 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
|
|||
}
|
||||
|
||||
poll_loop = 1;
|
||||
rtp_session->missed_count += (poll_sec * 1000 ) / (rtp_session->ms_per_packet ? rtp_session->ms_per_packet : 20 / 1000);
|
||||
rtp_session->missed_count += (poll_sec * 1000 ) / (rtp_session->ms_per_packet ? rtp_session->ms_per_packet / 1000 : 20 );
|
||||
bytes = 0;
|
||||
|
||||
if (rtp_session->max_missed_packets) {
|
||||
if (rtp_session->missed_count >= rtp_session->max_missed_packets) {
|
||||
ret = -2;
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (rtp_session->dtmf_data.out_digit_dur == 0 || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
|
||||
return_cng_frame();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue