提交 3ffa7915 authored 作者: Mathieu Rene's avatar Mathieu Rene

switch_rtp: fix audio glitches in jingle streams since ICE packets do not…

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
上级 eb7d52aa
...@@ -3259,8 +3259,10 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ ...@@ -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->recv_msg.header.version == 0) {
if (rtp_session->ice_user) { if (rtp_session->ice_user) {
handle_ice(rtp_session, (void *) &rtp_session->recv_msg, bytes); handle_ice(rtp_session, (void *) &rtp_session->recv_msg, bytes);
goto recvfrom;
} else if (rtp_session->remote_stun_addr) { } else if (rtp_session->remote_stun_addr) {
handle_stun_ping_reply(rtp_session, (void *) &rtp_session->recv_msg, bytes); handle_stun_ping_reply(rtp_session, (void *) &rtp_session->recv_msg, bytes);
goto recvfrom;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论