]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
force the version header in the rtp packet to 2 when pulling data out of the jitter...
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 8 Feb 2013 17:42:59 +0000 (11:42 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Apr 2013 02:27:24 +0000 (21:27 -0500)
src/switch_rtp.c

index f161c5e7e7cb2dd1407dd0cc570185c3d536eb39..a8775a7ed7ad0e9fd652a15269eda91883ac5c89 100644 (file)
@@ -3616,7 +3616,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
                        rtp_session->dtls->bytes = 0;
                        rtp_session->dtls->data = NULL;
                        
-                       if (0 && *b != 0 && *b != 1 && rtp_session->dtls->state != DS_READY) {
+                       if (*b != 0 && *b != 1 && rtp_session->dtls->state != DS_READY) {
                                *bytes = 0;
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG1, "Drop %s packet %ld bytes (dtls not ready!)\n", rtp_type(rtp_session), *bytes);
                        }
@@ -3855,6 +3855,8 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
                                rtp_session->stats.inbound.jb_packet_count++;
                        }
                        *bytes = jb_frame->dlen + rtp_header_len;
+                       rtp_session->recv_msg.header.version = 2;
+                       rtp_session->recv_msg.header.x = 0;
                        rtp_session->recv_msg.header.ts = htonl(jb_frame->ts);
                        rtp_session->recv_msg.header.pt = jb_frame->pt;
                        rtp_session->recv_msg.header.seq = htons(jb_frame->seq);