From: Mathieu Rene Date: Mon, 23 Jan 2012 16:01:24 +0000 (-0500) Subject: switch_rtp: fix audio glitches in jingle streams since ICE packets do not interrupt... X-Git-Tag: v1.2-rc1~19^2~1^2~32^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ffa7915c351d7127a17c038a0109ad398644d2e;p=thirdparty%2Ffreeswitch.git 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 --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index fd5b83c738..66055012c8 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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; } }