switch_rtp: fix audio glitches in jingle streams since ICE packets do not interrupt the RTP stream, we do not want to return a CNG frame when we get one

This commit is contained in:
Mathieu Rene 2012-01-23 11:01:24 -05:00
parent eb7d52aaa9
commit 3ffa7915c3
1 changed files with 2 additions and 0 deletions

View File

@ -3259,8 +3259,10 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
if (rtp_session->recv_msg.header.version == 0) {
if (rtp_session->ice_user) {
handle_ice(rtp_session, (void *) &rtp_session->recv_msg, bytes);
goto recvfrom;
} else if (rtp_session->remote_stun_addr) {
handle_stun_ping_reply(rtp_session, (void *) &rtp_session->recv_msg, bytes);
goto recvfrom;
}
}