[Freeswitch-svn] [commit] r7249 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Wed Jan 16 13:09:09 EST 2008
Author: anthm
Date: Wed Jan 16 13:09:09 2008
New Revision: 7249
Modified:
freeswitch/trunk/src/switch_rtp.c
Log:
just to be safe
Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c (original)
+++ freeswitch/trunk/src/switch_rtp.c Wed Jan 16 13:09:09 2008
@@ -1033,11 +1033,11 @@
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTO_CNG) &&
rtp_session->timer.samplecount >= (rtp_session->last_write_samplecount + (rtp_session->samples_per_interval * 50))) {
- uint8_t data[2] = { 0 };
+ uint8_t data[10] = { 0 };
switch_frame_flag_t frame_flags = SFF_NONE;
data[0] = 65;
rtp_session->cn++;
- rtp_common_write(rtp_session, NULL, (void *) data, sizeof(data), rtp_session->cng_pt, 0, &frame_flags);
+ rtp_common_write(rtp_session, NULL, (void *) data, 2, rtp_session->cng_pt, 0, &frame_flags);
}
}
More information about the Freeswitch-svn
mailing list