From fcda62a0652bc71db548d2e906a60354738d6554 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 22 Jun 2024 11:00:40 -0600 Subject: [PATCH] Create rtp_timestamp.patch --- debian/resources/switch/source/rtp_timestamp.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 debian/resources/switch/source/rtp_timestamp.patch diff --git a/debian/resources/switch/source/rtp_timestamp.patch b/debian/resources/switch/source/rtp_timestamp.patch new file mode 100644 index 0000000..441f886 --- /dev/null +++ b/debian/resources/switch/source/rtp_timestamp.patch @@ -0,0 +1,10 @@ +--- switch_rtp.c 2024-06-22 15:48:16.879125840 +0000 ++++ switch_rtp.c 2024-06-22 15:50:05.055559774 +0000 +@@ -8904,6 +8904,7 @@ + data = frame->data; + len = frame->datalen; + ts = rtp_session->flags[SWITCH_RTP_FLAG_RAW_WRITE] ? (uint32_t) frame->timestamp : 0; ++ if (!ts) ts = rtp_session->last_write_ts + rtp_session->samples_per_interval; + } + + /*