From 4e27e8467373b43f3ce48bd1b9a1681c45908ad9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 22 Apr 2006 15:07:02 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1227 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index e9dfafcab5..cdadd363ad 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -132,12 +132,12 @@ static switch_status ice_out(switch_rtp *rtp_session) if (rtp_session->last_stun) { elapsed = (unsigned int)((switch_time_now() - rtp_session->last_stun) / 1000); - if (elapsed > 10000) { + if (elapsed > 30000) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No stun for a long time (PUNT!)\n"); return SWITCH_STATUS_FALSE; } } - + packet = switch_stun_packet_build_header(SWITCH_STUN_BINDING_REQUEST, NULL, buf); switch_stun_packet_attribute_add_username(packet, rtp_session->ice_user, 32); bytes = switch_stun_packet_length(packet); @@ -813,8 +813,8 @@ static int rtp_common_write(switch_rtp *rtp_session, void *data, uint32_t datale if (++rtp_session->vad_data.cng_count >= rtp_session->vad_data.cng_freq) { rtp_session->send_msg.header.pt = SWITCH_RTP_CNG_PAYLOAD; memset(rtp_session->send_msg.body, 255, SWITCH_RTP_CNG_PAYLOAD); - rtp_session->send_msg.header.ts = htonl(rtp_session->vad_data.ts); - rtp_session->vad_data.ts++; + //rtp_session->send_msg.header.ts = htonl(rtp_session->vad_data.ts); + //rtp_session->vad_data.ts++; bytes = SWITCH_RTP_CNG_PAYLOAD; send = 1; rtp_session->vad_data.cng_count = 0;