]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4437 try this revision
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Jul 2012 17:40:34 +0000 (12:40 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Jul 2012 17:40:34 +0000 (12:40 -0500)
src/switch_rtp.c

index dcc5e09e48c78be38adbdeeba32cead9e8553a89..538a44fe16479d92f29f96c07dee559ab509c1cc 100644 (file)
@@ -4517,13 +4517,14 @@ 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_UDPTL)) {
+                       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);
                }
-               
 
-               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;