[Freeswitch-svn] [commit] r5217 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Fri May 25 12:15:02 EDT 2007
Author: anthm
Date: Fri May 25 12:15:02 2007
New Revision: 5217
Modified:
freeswitch/trunk/src/switch_rtp.c
Log:
possible fix for FSCORE-30 (part 2)
Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c (original)
+++ freeswitch/trunk/src/switch_rtp.c Fri May 25 12:15:02 2007
@@ -751,14 +751,14 @@
rtp_session->dtmf_data.out_digit_packet[2] = (unsigned char) (duration >> 8);
rtp_session->dtmf_data.out_digit_packet[3] = (unsigned char) duration;
+
+ rtp_session->dtmf_data.out_digit_seq++;
+
if (loops != 1) {
- rtp_session->dtmf_data.out_digit_seq++;
+ rtp_session->dtmf_data.timestamp_dtmf += samples;
}
for (x = 0; x < loops; x++) {
- if (loops == 1) {
- rtp_session->dtmf_data.out_digit_seq++;
- }
switch_rtp_write_manual(rtp_session,
rtp_session->dtmf_data.out_digit_packet,
4,
@@ -818,7 +818,7 @@
rtp_session->dtmf_data.out_digit,
rtp_session->dtmf_data.timestamp_dtmf, rtp_session->dtmf_data.out_digit_sofar, 0, rtp_session->dtmf_data.out_digit_seq);
}
-
+ rtp_session->dtmf_data.timestamp_dtmf += samples;
free(rdigit);
}
}
More information about the Freeswitch-svn
mailing list