From: Anthony Minessale Date: Fri, 5 Oct 2012 16:49:29 +0000 (-0500) Subject: FS-4684 this should help the proxy situation X-Git-Tag: v1.3.0~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dd1591945e4ff8d4ee587796cd0103dc89df407;p=thirdparty%2Ffreeswitch.git FS-4684 this should help the proxy situation --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 0acae50c19..ab7bc29eb1 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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; }