From 37547c668a72734d8859a4307a12fc14719c6227 Mon Sep 17 00:00:00 2001 From: Damian Minkov <damencho@jitsi.org> Date: Mon, 22 Jul 2013 10:41:28 +0300 Subject: [PATCH] Fixes correct dtmf packet length for RFC4733 dtmf tones. --- src/org/jitsi/impl/neomedia/transform/dtmf/DtmfRawPacket.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/jitsi/impl/neomedia/transform/dtmf/DtmfRawPacket.java b/src/org/jitsi/impl/neomedia/transform/dtmf/DtmfRawPacket.java index a0ca934c..1f01942c 100644 --- a/src/org/jitsi/impl/neomedia/transform/dtmf/DtmfRawPacket.java +++ b/src/org/jitsi/impl/neomedia/transform/dtmf/DtmfRawPacket.java @@ -154,6 +154,9 @@ private void setDtmfPayload(int code, boolean end, int duration, int volume) writeByte(at++, end ? (byte)(volume | 0x80) : (byte)(volume & 0x7f)); writeByte(at++, (byte)(duration >> 8)); writeByte(at++, (byte)duration); + + //packet finished setting its payload, set correct length + setLength(at); } /** -- GitLab