From 229fcd7860d276579596216f3bdd8a4c1f3e37a5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 9 Jan 2008 17:20:05 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7150 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 57a449605f..ccacbfb637 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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++;