mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
reduce poll timeout when dtmf is present
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14749 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1654f20325
commit
c8dcc6e12b
@ -1800,7 +1800,15 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
|
||||
}
|
||||
|
||||
if (!rtp_session->timer.interval && rtp_session->read_pollfd) {
|
||||
poll_status = switch_poll(rtp_session->read_pollfd, 1, &fdr, poll_sec * 1000000);
|
||||
int pt = poll_sec * 1000000;
|
||||
|
||||
if (rtp_session->dtmf_data.out_digit_dur > 0) {
|
||||
pt = 20000;
|
||||
}
|
||||
poll_status = switch_poll(rtp_session->read_pollfd, 1, &fdr, pt);
|
||||
if (rtp_session->dtmf_data.out_digit_dur > 0) {
|
||||
do_2833(rtp_session);
|
||||
}
|
||||
}
|
||||
|
||||
if (poll_status == SWITCH_STATUS_SUCCESS) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user