git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7150 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-01-09 17:20:05 +00:00
parent 5e356a681b
commit 229fcd7860
1 changed files with 4 additions and 2 deletions

View File

@ -839,6 +839,8 @@ static void do_2833(switch_rtp_t *rtp_session)
if (switch_queue_trypop(rtp_session->dtmf_data.dtmf_queue, &pop) == SWITCH_STATUS_SUCCESS) {
switch_dtmf_t *rdigit = pop;
rtp_session->sending_dtmf = 1;
memset(rtp_session->dtmf_data.out_digit_packet, 0, 4);
rtp_session->dtmf_data.out_digit_sofar = samples;
rtp_session->dtmf_data.out_digit_dur = rdigit->duration;
@ -847,12 +849,12 @@ static void do_2833(switch_rtp_t *rtp_session)
rtp_session->dtmf_data.out_digit_packet[1] = 7;
if (rtp_session->timer.timer_interface) {
rtp_session->dtmf_data.timestamp_dtmf = rtp_session->timer.samplecount;
rtp_session->dtmf_data.timestamp_dtmf = rtp_session->timer.samplecount + samples;
} else {
rtp_session->dtmf_data.timestamp_dtmf = rtp_session->last_write_ts + samples;
}
rtp_session->sending_dtmf = 1;
rtp_session->seq++;