git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9933 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-10-10 15:47:58 +00:00
parent 76b648036a
commit 6958dc9a16
1 changed files with 5 additions and 1 deletions

View File

@ -1274,7 +1274,11 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
return_cng_frame();
}
if (bytes > 12 && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ) && switch_sockaddr_get_port(rtp_session->from_addr)) {
if (bytes <= rtp_header_len) {
continue;
}
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ) && switch_sockaddr_get_port(rtp_session->from_addr)) {
const char *tx_host;
const char *old_host;
char bufa[30], bufb[30];