git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1227 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-04-22 15:07:02 +00:00
parent 1eb4d491a5
commit 4e27e84673

View File

@ -132,7 +132,7 @@ static switch_status ice_out(switch_rtp *rtp_session)
if (rtp_session->last_stun) { if (rtp_session->last_stun) {
elapsed = (unsigned int)((switch_time_now() - rtp_session->last_stun) / 1000); 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"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No stun for a long time (PUNT!)\n");
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }
@ -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) { if (++rtp_session->vad_data.cng_count >= rtp_session->vad_data.cng_freq) {
rtp_session->send_msg.header.pt = SWITCH_RTP_CNG_PAYLOAD; rtp_session->send_msg.header.pt = SWITCH_RTP_CNG_PAYLOAD;
memset(rtp_session->send_msg.body, 255, 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->send_msg.header.ts = htonl(rtp_session->vad_data.ts);
rtp_session->vad_data.ts++; //rtp_session->vad_data.ts++;
bytes = SWITCH_RTP_CNG_PAYLOAD; bytes = SWITCH_RTP_CNG_PAYLOAD;
send = 1; send = 1;
rtp_session->vad_data.cng_count = 0; rtp_session->vad_data.cng_count = 0;