]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4684 this should help the proxy situation
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 5 Oct 2012 16:49:29 +0000 (11:49 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 5 Oct 2012 16:49:29 +0000 (11:49 -0500)
src/switch_rtp.c

index 0acae50c1905dcf14754d2d26a63e5b0cd4e5bdf..ab7bc29eb12288406d3a6834815665bc1797f6e2 100644 (file)
@@ -4521,7 +4521,8 @@ 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) && !switch_test_flag(frame, SFF_UDPTL_PACKET)) {
-                       if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
+
+                       if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO) && rtp_session->payload > 0) {
                                send_msg->header.pt = rtp_session->payload;
                        }