]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4317 this might help, this fixes a regression cause by another recently altered...
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Jul 2012 23:47:45 +0000 (18:47 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Jul 2012 23:47:45 +0000 (18:47 -0500)
src/switch_rtp.c

index a477a24dbe14719af99c93e5bc6602ec43cd93e6..81eea2905f38e786a25b5dc666c7fd41a0435360 100644 (file)
@@ -4499,6 +4499,8 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
        
        if (switch_test_flag(frame, SFF_PROXY_PACKET) || switch_test_flag(frame, SFF_UDPTL_PACKET) ||
                switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_UDPTL)) {
+               
+       //if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_UDPTL)) {
                switch_size_t bytes;
                //char bufa[30];
 
@@ -4512,11 +4514,13 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
 
                send_msg = frame->packet;
 
-               /*
-                 if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
-                 send_msg->header.pt = rtp_session->payload;
-                 }
-               */
+               
+               if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
+                       send_msg->header.pt = rtp_session->payload;
+               }
+               
+
+               send_msg->header.ssrc = htonl(rtp_session->ssrc);
 
                if (switch_socket_sendto(rtp_session->sock_output, rtp_session->remote_addr, 0, frame->packet, &bytes) != SWITCH_STATUS_SUCCESS) {
                        return -1;