Project "FreeSWITCH Source" received a push.

branch: master updated

       via: 0bce777a4a06701798e426b13b8b7e0153836077 (commit)
      from: 17d521128014853b24f983307fc28317f11e950b (commit)


= COMMIT LOG ===========================================================
committer: Anthony Minessale
comments: 
fix regression in rtp stack trying to avoid broken clients who send the wrong payload type, we were eating the stun packets in jingle calls

diff --git a/src/switch_rtp.c b/src/switch_rtp.c
index 200f4f0..faa79e3 100644
--- a/src/switch_rtp.c
+++ b/src/switch_rtp.c
@@ -2808,7 +2808,8 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
 			goto end;
 		}
 
-		if (bytes && !switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA) && !switch_test_flag(rtp_session, SWITCH_RTP_FLAG_UDPTL) &&
+		if (bytes && rtp_session->recv_msg.header.version == 2 && 
+			!switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA) && !switch_test_flag(rtp_session, SWITCH_RTP_FLAG_UDPTL) &&
 			rtp_session->recv_msg.header.pt != 13 && 
 			rtp_session->recv_msg.header.pt != rtp_session->recv_te && 
 			(!rtp_session->cng_pt || rtp_session->recv_msg.header.pt != rtp_session->cng_pt) && 
========================================================================

Summary of changes:
 src/switch_rtp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630 --
FreeSWITCH Source