[Freeswitch-svn] [commit] r7182 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Fri Jan 11 17:16:20 EST 2008
Author: mikej
Date: Fri Jan 11 17:16:20 2008
New Revision: 7182
Modified:
freeswitch/trunk/src/switch_rtp.c
Log:
type tweaks for windows build.
Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c (original)
+++ freeswitch/trunk/src/switch_rtp.c Fri Jan 11 17:16:20 2008
@@ -868,7 +868,7 @@
switch_core_timer_check(&rtp_session->timer);
offset = rtp_session->timer.samplecount - rtp_session->last_write_samplecount;
if (offset > 0) {
- rtp_session->dtmf_data.timestamp_dtmf += offset;
+ rtp_session->dtmf_data.timestamp_dtmf = (uint32_t)(rtp_session->dtmf_data.timestamp_dtmf + offset);
}
}
@@ -1087,7 +1087,7 @@
if (!switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PASS_RFC2833) && rtp_session->recv_msg.header.pt == rtp_session->te) {
unsigned char *packet = (unsigned char *) rtp_session->recv_msg.body;
int end = packet[1] & 0x80 ? 1 : 0;
- int duration = (packet[2] << 8) + packet[3];
+ uint16_t duration = (packet[2] << 8) + packet[3];
char key = switch_rfc2833_to_char(packet[0]);
uint16_t in_digit_seq = ntohs((uint16_t) rtp_session->recv_msg.header.seq);
More information about the Freeswitch-svn
mailing list