From 97060f50b44eb033d8fd3577f4b1f3d8aa1b4e12 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 9 Jan 2008 20:18:33 +0000 Subject: [PATCH] fix timestamp base in 2833 when not re-writing timestamps (partial fix for FSCORE-83) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7157 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index ccacbfb637..9472e9d77f 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -848,15 +848,8 @@ static void do_2833(switch_rtp_t *rtp_session) rtp_session->dtmf_data.out_digit_packet[0] = (unsigned char) switch_char_to_rfc2833(rdigit->digit); 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 + samples; - } else { - rtp_session->dtmf_data.timestamp_dtmf = rtp_session->last_write_ts + samples; - } - - + rtp_session->dtmf_data.timestamp_dtmf = rtp_session->last_write_ts + samples; - rtp_session->seq++; switch_rtp_write_manual(rtp_session, rtp_session->dtmf_data.out_digit_packet,