From 86ab3c5d1e6e6109fab8e4ecec725e078560f7c9 Mon Sep 17 00:00:00 2001 From: Patrice Fournier Date: Thu, 30 Jul 2015 22:27:35 -0400 Subject: [PATCH] FS-7942 #comment Fix segfault on T.38 FAX calls --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 9e427dc821..714ee2ca48 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -6800,7 +6800,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_zerocopy_read_frame(switch_rtp_t *rtp frame->data = RTP_BODY(rtp_session); - if (bytes < rtp_header_len || switch_test_flag(frame, SFF_CNG)) { + if (!rtp_session->flags[SWITCH_RTP_FLAG_UDPTL] && (bytes < rtp_header_len || switch_test_flag(frame, SFF_CNG))) { frame->packet = NULL; frame->timestamp = 0; frame->seq = 0;